forked from XiaoMo/ChatGPT-Next-Web
Update common.ts
This commit is contained in:
parent
9ef680db57
commit
a832cfb343
@ -35,6 +35,7 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
const fetchOptions: RequestInit = {
|
const fetchOptions: RequestInit = {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
"Cache-Control": "no-store",
|
||||||
Authorization: authValue,
|
Authorization: authValue,
|
||||||
...(process.env.OPENAI_ORG_ID && {
|
...(process.env.OPENAI_ORG_ID && {
|
||||||
"OpenAI-Organization": process.env.OPENAI_ORG_ID,
|
"OpenAI-Organization": process.env.OPENAI_ORG_ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user