Fixup Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix condition to check if serverConfig.openaiOrgId is not undefined
This commit is contained in:
H0llyW00dzZ 2023-11-25 10:23:16 +07:00
parent f9258878db
commit f9d916925e
No known key found for this signature in database
GPG Key ID: 05C7FFFC0845C930

View File

@ -31,7 +31,7 @@ export async function requestOpenai(req: NextRequest) {
console.log("[Proxy] ", path); console.log("[Proxy] ", path);
console.log("[Base Url]", baseUrl); console.log("[Base Url]", baseUrl);
// this fix [Org ID] undefined in server side if not using custom point // this fix [Org ID] undefined in server side if not using custom point
if (serverConfig.openaiOrgId) { if (serverConfig.openaiOrgId !== undefined) {
console.log("[Org ID]", serverConfig.openaiOrgId); console.log("[Org ID]", serverConfig.openaiOrgId);
} }