瀏覽代碼

Update requests.ts

Yifei Zhang 2 年之前
父節點
當前提交
a68721fcf2
共有 1 個文件被更改,包括 1 次插入2 次删除
  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(),
       },