mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-28 06:06:38 +08:00
Update common.ts
This commit is contained in:
parent
32d788d808
commit
37ff8924d1
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user