diff --git a/app/api/common.ts b/app/api/common.ts index 336802036..4ebbd5d09 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -28,10 +28,8 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se } let path = `${req.nextUrl.pathname}`.replaceAll("/api/openai/", ""); - let baseUrl = serverConfig.azureUrl; - /* let baseUrl = + let baseUrl = (isAzure ? serverConfig.azureUrl : serverConfig.baseUrl) || OPENAI_BASE_URL; - */ if (!baseUrl.startsWith("http")) { baseUrl = `https://${baseUrl}`; }