From 4aa0ff789e4aa0e0bd395e29b422de1fa82b526a Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sat, 1 Feb 2025 19:33:41 -0500 Subject: [PATCH] Update common.ts --- app/api/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/common.ts b/app/api/common.ts index 51f520a71..75266d779 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -9,7 +9,7 @@ const serverConfig = getServerSideConfig(); export async function requestOpenai(req: NextRequest) { const controller = new AbortController(); - const isAzure = req.nextUrl.pathname.includes("azure/deployments"); +const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(serverConfig.azureUrl && serverConfig.azureUrl.includes(".models.ai.azure.com")); var authValue, authHeaderName = "";