Fix Api Common [Server Side] [Console Log]

- [+] fix(common.ts): fix console.log statement for [Org ID] to handle undefined value
This commit is contained in:
H0llyW00dzZ 2023-11-25 10:03:41 +07:00
parent b21931c667
commit f9258878db
No known key found for this signature in database
GPG Key ID: 05C7FFFC0845C930

View File

@ -30,7 +30,10 @@ 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
if (serverConfig.openaiOrgId) {
console.log("[Org ID]", serverConfig.openaiOrgId); console.log("[Org ID]", serverConfig.openaiOrgId);
}
const timeoutId = setTimeout( const timeoutId = setTimeout(
() => { () => {