feat: qwen

This commit is contained in:
Dogtiti
2024-07-07 21:59:56 +08:00
parent 7218f13783
commit 9bdd37bb63
8 changed files with 493 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
case ModelProvider.Claude:
systemApiKey = serverConfig.anthropicApiKey;
break;
case ModelProvider.Qwen:
systemApiKey = serverConfig.alibabaApiKey;
break;
case ModelProvider.GPT:
default:
if (req.nextUrl.pathname.includes("azure/deployments")) {