From 6b6fd6997df6c8c64f7ee015bab4e3f061eedd93 Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sun, 2 Feb 2025 19:06:37 -0500 Subject: [PATCH] Update common.ts --- app/api/common.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/common.ts b/app/api/common.ts index a44b04e22..da4a7787b 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -59,6 +59,7 @@ console.log("[Auth Value Present]", !!authValue); req?.nextUrl?.searchParams?.get("api-version") || serverConfig.azureApiVersion; const isAIFoundation = baseUrl.includes(".models.ai.azure.com"); + console.log("[Is AI Foundation]", isAIFoundation); if (isAIFoundation) { // For AI Foundation models, use direct path without deployments // failed to work. path = "chat/completions"; @@ -104,6 +105,7 @@ console.log("[Auth Value Present]", !!authValue); } } } + console.log("[Final Path]", path); } const fetchUrl = cloudflareAIGatewayUrl(`${baseUrl}/${path}`);