Skip to content

Commit

Permalink
Merge pull request #2355 from fyl080801/main
Browse files Browse the repository at this point in the history
fix: cloudflare headers
  • Loading branch information
Yidadaa authored Jul 11, 2023
2 parents c7c318b + 72cfebd commit 22cf78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ 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,
}),
},
cache: "no-store",
method: req.method,
body: req.body,
// @ts-ignore
Expand Down

0 comments on commit 22cf78d

Please sign in to comment.