From 24d7dc9bf91f1f0513dd831a2ea7e60fc2612515 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 eedd2c9a..9f2a4b4e 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -130,6 +130,7 @@ export function getHeaders() { const headers: Record = { "Content-Type": "application/json", "x-requested-with": "XMLHttpRequest", + "Accept": "application/json", }; const isAzure = accessStore.provider === ServiceProvider.Azure;