From e021555e09f18ac044d850a2dd69dbfa89294369 Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sat, 1 Feb 2025 22:51:54 -0500 Subject: [PATCH] Update common.ts --- app/api/common.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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}`; }