fix: #751 do not cache request

main
Yidadaa 3 years ago
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…
Cancel
Save