mirror of
https://github.com/ChatGPTNextWeb/NextChat.git
synced 2026-02-14 16:26:36 +08:00
support azure deployment name
This commit is contained in:
@@ -75,7 +75,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
|
||||
break;
|
||||
case ModelProvider.GPT:
|
||||
default:
|
||||
if (serverConfig.isAzure) {
|
||||
if (req.nextUrl.pathname.includes("azure/deployments")) {
|
||||
systemApiKey = serverConfig.azureApiKey;
|
||||
} else {
|
||||
systemApiKey = serverConfig.apiKey;
|
||||
|
||||
Reference in New Issue
Block a user