Update common.ts

This commit is contained in:
Richard C Lim 2025-02-08 22:43:37 -05:00 committed by GitHub
parent 06472adea9
commit 2a8dd83440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,6 @@ export async function requestOpenai(req: NextRequest) {
console.log("[pathname: Azure?]", req.nextUrl.pathname);
const isAzure = req.nextUrl.pathname.includes("azure/deployments");
//|| Boolean(serverConfig.azureUrl && serverConfig.azureUrl.includes(".models.ai.azure.com"))
console.log("[Auth Header Name]", authHeaderName);
var authValue,
authHeaderName = "";
if (isAzure) {