forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #3570 from Rocky0102/main
This commit is contained in:
commit
c03abdac42
@ -144,6 +144,7 @@ export function getHeaders() {
|
|||||||
const headers: Record<string, string> = {
|
const headers: Record<string, string> = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"x-requested-with": "XMLHttpRequest",
|
"x-requested-with": "XMLHttpRequest",
|
||||||
|
"Accept": "application/json",
|
||||||
};
|
};
|
||||||
const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
|
const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
|
||||||
const isGoogle = modelConfig.model === "gemini-pro";
|
const isGoogle = modelConfig.model === "gemini-pro";
|
||||||
|
Loading…
Reference in New Issue
Block a user