mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
Update common.ts
This commit is contained in:
@@ -52,7 +52,7 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
|
|
||||||
if (isAzure) {
|
if (isAzure) {
|
||||||
const isAIFoundation = serverConfig.azureUrl?.includes(".models.ai.azure.com");
|
const isAIFoundation = serverConfig.azureUrl?.includes(".models.ai.azure.com");
|
||||||
if (isAIFoundation) {
|
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 = "chat/completions";
|
||||||
|
|||||||
Reference in New Issue
Block a user