Update common.ts

This commit is contained in:
yuanliang feng 2023-07-11 15:46:40 +08:00 committed by GitHub
parent 9ef680db57
commit a832cfb343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,