Jelajahi Sumber

Update requests.ts

Yifei Zhang 2 tahun lalu
induk
melakukan
a68721fcf2
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      app/requests.ts

+ 1 - 2
app/requests.ts

@@ -46,11 +46,10 @@ function getHeaders() {
 
 export function requestOpenaiClient(path: string) {
   return (body: any, method = "POST") =>
-    fetch("/api/openai", {
+    fetch("/api/openai?_vercel_no_cache=1", {
       method,
       headers: {
         "Content-Type": "application/json",
-        "Cache-Control": "no-cache",
         path,
         ...getHeaders(),
       },