Procházet zdrojové kódy

Merge pull request #3570 from Rocky0102/main

Yifei Zhang před 1 rokem
rodič
revize
c03abdac42
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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";