From 7f1302559090400d1059e66b5d6d00c36e197ddf Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sat, 1 Feb 2025 19:50:50 -0500 Subject: [PATCH] Update common.ts --- app/api/common.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/api/common.ts b/app/api/common.ts index 75266d779..6f98f92ee 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -52,11 +52,7 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se if (isAzure) { const isAIFoundation = serverConfig.azureUrl?.includes(".models.ai.azure.com"); - if (isAIFoundation && serverConfig.azureUrl) { - // For AI Foundation, use the path directly without api-version - baseUrl = serverConfig.azureUrl; - // path = req.nextUrl.pathname.replaceAll("/api/azure/", ""); - } else { + if (!isAIFoundation) { const azureApiVersion = req?.nextUrl?.searchParams?.get("api-version") || serverConfig.azureApiVersion;