From ff166f7b4cf52be5716fb93b7c0f3c872def2ef5 Mon Sep 17 00:00:00 2001 From: fred-bf <157469842+fred-bf@users.noreply.github.com> Date: Mon, 26 Feb 2024 17:18:46 +0800 Subject: [PATCH] chore: adjust for ollama support (#4129) --- app/client/api.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/app/client/api.ts b/app/client/api.ts index 9133e2a6431..c4d548a41b0 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -151,7 +151,6 @@ export function getHeaders() { const accessStore = useAccessStore.getState(); const headers: Record = { "Content-Type": "application/json", - "x-requested-with": "XMLHttpRequest", Accept: "application/json", }; const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;