Merge branch 'main' into main

This commit is contained in:
glay
2025-02-06 12:25:47 +08:00
committed by GitHub
17 changed files with 568 additions and 21 deletions

View File

@@ -108,6 +108,9 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
":" +
serverConfig.awsSecretKey;
break;
case ModelProvider.SiliconFlow:
systemApiKey = serverConfig.siliconFlowApiKey;
break;
case ModelProvider.GPT:
default:
if (req.nextUrl.pathname.includes("azure/deployments")) {