From 039b606e6b332825cc54f5031b78d14e8415b123 Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sat, 1 Feb 2025 21:24:00 -0500 Subject: [PATCH] Update common.ts --- app/api/common.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/common.ts b/app/api/common.ts index 6f98f92ee..336802036 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -28,10 +28,10 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se } let path = `${req.nextUrl.pathname}`.replaceAll("/api/openai/", ""); - - let baseUrl = + let baseUrl = serverConfig.azureUrl; + /* let baseUrl = (isAzure ? serverConfig.azureUrl : serverConfig.baseUrl) || OPENAI_BASE_URL; - + */ if (!baseUrl.startsWith("http")) { baseUrl = `https://${baseUrl}`; }