From 34af71c8d11323081cf7fca3746cd3600acd3995 Mon Sep 17 00:00:00 2001 From: Aiden Dong Date: Wed, 27 Nov 2024 21:54:49 +0800 Subject: [PATCH 1/4] Update xai.ts --- app/api/xai.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/xai.ts b/app/api/xai.ts index a4ee8b39731..e402d068e8d 100644 --- a/app/api/xai.ts +++ b/app/api/xai.ts @@ -108,6 +108,7 @@ async function request(req: NextRequest) { console.error(`[XAI] filter`, e); } } + console.log("fetchOptions", fetchOptions); try { const res = await fetch(fetchUrl, fetchOptions); From d54f144b5ffb70a3207637317235ac3b07ef35fd Mon Sep 17 00:00:00 2001 From: Aiden Dong Date: Wed, 27 Nov 2024 21:58:56 +0800 Subject: [PATCH 2/4] Update xai.ts --- app/api/xai.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/xai.ts b/app/api/xai.ts index e402d068e8d..137e7f774d0 100644 --- a/app/api/xai.ts +++ b/app/api/xai.ts @@ -108,6 +108,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); From 04c74be0f37878d180db18f784f56bf9b4708e56 Mon Sep 17 00:00:00 2001 From: Aiden Dong Date: Wed, 27 Nov 2024 22:05:49 +0800 Subject: [PATCH 3/4] Update xai.ts --- app/api/xai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/xai.ts b/app/api/xai.ts index 137e7f774d0..4abc7ed06cb 100644 --- a/app/api/xai.ts +++ b/app/api/xai.ts @@ -77,7 +77,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 { From 0fbacb7a735e0339ae992d701185f5eb83932e97 Mon Sep 17 00:00:00 2001 From: Aiden Dong Date: Wed, 27 Nov 2024 22:06:29 +0800 Subject: [PATCH 4/4] Update xai.ts --- app/api/xai.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/xai.ts b/app/api/xai.ts index 4abc7ed06cb..51ddec7464e 100644 --- a/app/api/xai.ts +++ b/app/api/xai.ts @@ -29,6 +29,7 @@ export async function handle( }); } + console.log("req.body", req.body); try { const response = await request(req); return response;