浏览代码

Merge pull request #3570 from Rocky0102/main

Yifei Zhang 1 年之前
父节点
当前提交
c03abdac42
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/client/api.ts

+ 1 - 0
app/client/api.ts

@@ -144,6 +144,7 @@ export function getHeaders() {
   const headers: Record<string, string> = {
     "Content-Type": "application/json",
     "x-requested-with": "XMLHttpRequest",
+    "Accept": "application/json",
   };
   const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
   const isGoogle = modelConfig.model === "gemini-pro";