Update common.ts

This commit is contained in:
Richard C Lim
2025-02-01 22:51:54 -05:00
committed by GitHub
parent c17ed54e85
commit e021555e09

View File

@@ -28,10 +28,8 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
}
let path = `${req.nextUrl.pathname}`.replaceAll("/api/openai/", "");
let baseUrl = serverConfig.azureUrl;
/* let baseUrl =
let baseUrl =
(isAzure ? serverConfig.azureUrl : serverConfig.baseUrl) || OPENAI_BASE_URL;
*/
if (!baseUrl.startsWith("http")) {
baseUrl = `https://${baseUrl}`;
}