更新Bedrock

This commit is contained in:
Ryder.Tsui
2024-06-13 17:31:42 +08:00
parent b6735bffe4
commit f021826220
13 changed files with 454 additions and 11 deletions

View File

@@ -73,6 +73,9 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
case ModelProvider.Claude:
systemApiKey = serverConfig.anthropicApiKey;
break;
case ModelProvider.Bedrock:
systemApiKey = serverConfig.awsApiKey;
break;
case ModelProvider.GPT:
default:
if (serverConfig.isAzure) {