From 759591805589b4c327d1d5b2a6799cfe4e034b4e Mon Sep 17 00:00:00 2001 From: Rocky <40670362@qq.com> Date: Mon, 18 Dec 2023 20:34:37 +0800 Subject: [PATCH] Update api.ts to set proper header "Accept" So it can work fine for some GPT forward service. --- app/client/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/client/api.ts b/app/client/api.ts index 3a8b3e68f..6d287b52f 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -174,6 +174,7 @@ export function getHeaders(ignoreHeaders?: boolean) { headers = { "Content-Type": "application/json", "x-requested-with": "XMLHttpRequest", + "Accept": "application/json", }; } const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;