Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#3372 from H0llyW00dzZ/fixserverside
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Nov 27, 2023
2 parents ce1715c + f9d9169 commit 03756e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export async function requestOpenai(req: NextRequest) {

console.log("[Proxy] ", path);
console.log("[Base Url]", baseUrl);
console.log("[Org ID]", serverConfig.openaiOrgId);
// this fix [Org ID] undefined in server side if not using custom point
if (serverConfig.openaiOrgId !== undefined) {
console.log("[Org ID]", serverConfig.openaiOrgId);
}

const timeoutId = setTimeout(
() => {
Expand Down

0 comments on commit 03756e3

Please sign in to comment.