forked from XiaoMo/ChatGPT-Next-Web
fix: #751 do not cache request
This commit is contained in:
parent
1aaf4ae5bc
commit
8f5c289818
@ -26,8 +26,11 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${apiKey}`,
|
Authorization: `Bearer ${apiKey}`,
|
||||||
...(process.env.OPENAI_ORG_ID && { "OpenAI-Organization": process.env.OPENAI_ORG_ID }),
|
...(process.env.OPENAI_ORG_ID && {
|
||||||
|
"OpenAI-Organization": process.env.OPENAI_ORG_ID,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
|
cache: "no-store",
|
||||||
method: req.method,
|
method: req.method,
|
||||||
body: req.body,
|
body: req.body,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user