fix: upload error

This commit is contained in:
Hk-Gosuto 2024-07-25 11:33:12 +00:00
parent f9cae75429
commit 275308b738
1 changed files with 7 additions and 4 deletions

View File

@ -230,10 +230,13 @@ export class ClientApi {
export function getHeaders(ignoreHeaders?: boolean) {
const accessStore = useAccessStore.getState();
const chatStore = useChatStore.getState();
const headers: Record<string, string> = {
"Content-Type": "application/json",
Accept: "application/json",
};
let headers: Record<string, string> = {};
if (!ignoreHeaders) {
headers = {
"Content-Type": "application/json",
Accept: "application/json",
};
}
const clientConfig = getClientConfig();