mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
Update common.ts
This commit is contained in:
parent
f55a173cc3
commit
6b6fd6997d
@ -59,6 +59,7 @@ console.log("[Auth Value Present]", !!authValue);
|
|||||||
req?.nextUrl?.searchParams?.get("api-version") ||
|
req?.nextUrl?.searchParams?.get("api-version") ||
|
||||||
serverConfig.azureApiVersion;
|
serverConfig.azureApiVersion;
|
||||||
const isAIFoundation = baseUrl.includes(".models.ai.azure.com");
|
const isAIFoundation = baseUrl.includes(".models.ai.azure.com");
|
||||||
|
console.log("[Is AI Foundation]", isAIFoundation);
|
||||||
if (isAIFoundation) {
|
if (isAIFoundation) {
|
||||||
// For AI Foundation models, use direct path without deployments
|
// For AI Foundation models, use direct path without deployments
|
||||||
// failed to work. path = "chat/completions";
|
// 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}`);
|
const fetchUrl = cloudflareAIGatewayUrl(`${baseUrl}/${path}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user