mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-23 22:20:23 +09:00
Update api.ts to set proper header "Accept"
So it can work fine for some GPT forward service.
This commit is contained in:
parent
9bfd979b08
commit
7595918055
@ -174,6 +174,7 @@ export function getHeaders(ignoreHeaders?: boolean) {
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"x-requested-with": "XMLHttpRequest",
|
||||
"Accept": "application/json",
|
||||
};
|
||||
}
|
||||
const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user