diff --git a/app/client/api.ts b/app/client/api.ts index 6dc5466e1..c2683ab61 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -230,10 +230,13 @@ export class ClientApi { export function getHeaders(ignoreHeaders?: boolean) { const accessStore = useAccessStore.getState(); const chatStore = useChatStore.getState(); - const headers: Record = { - "Content-Type": "application/json", - Accept: "application/json", - }; + let headers: Record = {}; + if (!ignoreHeaders) { + headers = { + "Content-Type": "application/json", + Accept: "application/json", + }; + } const clientConfig = getClientConfig();