Merge feature/update-bedrock-api into main

This commit is contained in:
glay
2024-11-05 20:04:36 +08:00
38 changed files with 597 additions and 67 deletions

View File

@@ -117,6 +117,9 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
case ModelProvider.XAI:
systemApiKey = serverConfig.xaiApiKey;
break;
case ModelProvider.ChatGLM:
systemApiKey = serverConfig.chatglmApiKey;
break;
case ModelProvider.GPT:
default:
if (req.nextUrl.pathname.includes("azure/deployments")) {