Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
byteappua committed Nov 27, 2024
2 parents b5b903b + 0fbacb7 commit fd041f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/xai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function handle(
});
}

console.log("req.body", req.body);
try {
const response = await request(req);
return response;
Expand Down Expand Up @@ -77,7 +78,7 @@ async function request(req: NextRequest) {
duplex: "half",
signal: controller.signal,
};

console.log("req.body", req.body);
// #1815 try to refuse some request to some models
if (serverConfig.customModels && req.body) {
try {
Expand Down Expand Up @@ -108,6 +109,7 @@ async function request(req: NextRequest) {
console.error(`[XAI] filter`, e);
}
}
console.log("fetchUrl", fetchUrl);
console.log("fetchOptions", fetchOptions);
try {
const res = await fetch(fetchUrl, fetchOptions);
Expand Down

0 comments on commit fd041f6

Please sign in to comment.