Explorar o código

Update common.ts

yuanliang feng hai 1 ano
pai
achega
a832cfb343
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,