feat: 添加 Bedrock API 客户端及 API 层增强

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
unraid
2026-04-22 22:38:09 +08:00
parent 59f8675fa3
commit be97a0b010
15 changed files with 1362 additions and 197 deletions

View File

@@ -944,6 +944,9 @@ function get3PModelFallbackSuggestion(model: string): string | undefined {
// @[MODEL LAUNCH]: Add a fallback suggestion chain for the new model → previous version for 3P
const m = model.toLowerCase()
// If the failing model looks like an Opus 4.6 variant, suggest the default Opus (4.1 for 3P)
if (m.includes('opus-4-7') || m.includes('opus_4_7')) {
return getModelStrings().opus46
}
if (m.includes('opus-4-6') || m.includes('opus_4_6')) {
return getModelStrings().opus41
}