Kaynağa Gözat

Update api.ts to set proper header "Accept"

So it can work fine for some GPT forward service.
Rocky 1 yıl önce
ebeveyn
işleme
24d7dc9bf9
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      app/client/api.ts

+ 1 - 0
app/client/api.ts

@@ -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;