Update common.ts

This commit is contained in:
Richard C Lim 2025-02-01 03:23:26 -05:00 committed by GitHub
parent 0831be97ba
commit e979421c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,6 @@ export async function requestOpenai(req: NextRequest) {
if (isAIFoundation && serverConfig.azureUrl) { if (isAIFoundation && serverConfig.azureUrl) {
// For AI Foundation, use the path directly without api-version // For AI Foundation, use the path directly without api-version
baseUrl = serverConfig.azureUrl; baseUrl = serverConfig.azureUrl;
path = "chat/completions";
// path = req.nextUrl.pathname.replaceAll("/api/azure/", ""); // path = req.nextUrl.pathname.replaceAll("/api/azure/", "");
} else { } else {
const azureApiVersion = const azureApiVersion =