浏览代码

Update common.ts

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

+ 1 - 0
app/api/common.ts

@@ -35,6 +35,7 @@ export async function requestOpenai(req: NextRequest) {
   const fetchOptions: RequestInit = {
     headers: {
       "Content-Type": "application/json",
+      "Cache-Control": "no-store",
       Authorization: authValue,
       ...(process.env.OPENAI_ORG_ID && {
         "OpenAI-Organization": process.env.OPENAI_ORG_ID,