Update api.ts to set proper header "Accept"
So it can work fine for some GPT forward service.
This commit is contained in:
parent
efdd61595e
commit
24d7dc9bf9
|
@ -130,6 +130,7 @@ export function getHeaders() {
|
|||
const headers: Record<string, string> = {
|
||||
"Content-Type": "application/json",
|
||||
"x-requested-with": "XMLHttpRequest",
|
||||
"Accept": "application/json",
|
||||
};
|
||||
|
||||
const isAzure = accessStore.provider === ServiceProvider.Azure;
|
||||
|
|
Loading…
Reference in New Issue