🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style: add new bedrock model support (#9826)
Kevin Zhao1b8a981e5b2f
diff --git a/packages/const/src/models.ts b/packages/const/src/models.tsindex 504516a9a2a..9b5132e7ae8 100644--- a/packages/const/src/models.ts+++ b/packages/const/src/models.ts@@ -56,6 +56,11 @@ export const contextCachingModels = new Set(['claude-3-5-sonnet-20240620','claude-3-5-haiku-latest','claude-3-5-haiku-20241022',+ // Bedrock model IDs+ 'us.anthropic.claude-sonnet-4-5-20250929-v1:0',+ 'anthropic.claude-sonnet-4-5-20250929-v1:0',+ 'us.anthropic.claude-haiku-4-5-20251001-v1:0',+ 'anthropic.claude-haiku-4-5-20251001-v1:0',]);export const thinkingWithToolClaudeModels = new Set([@@ -69,4 +74,9 @@ export const thinkingWithToolClaudeModels = new Set(['anthropic/claude-sonnet-4.5','claude-3-7-sonnet-latest','claude-3-7-sonnet-20250219',+ // Bedrock model IDs+ 'us.anthropic.claude-sonnet-4-5-20250929-v1:0',+ 'anthropic.claude-sonnet-4-5-20250929-v1:0',+ 'us.anthropic.claude-haiku-4-5-20251001-v1:0',+ 'anthropic.claude-haiku-4-5-20251001-v1:0',]);diff --git a/packages/model-bank/src/aiModels/bedrock.ts b/packages/model-bank/src/aiModels/bedrock.tsindex 7cffcf24622..175e2c2a5d0 100644--- a/packages/model-bank/src/aiModels/bedrock.ts+++ b/packages/model-bank/src/aiModels/bedrock.ts@@ -1,6 +1,50 @@import { AIChatModelCard } from '../types/aiModel';const bedrockChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 200_000,+ description: 'Claude Sonnet 4.5 是 Anthropic 迄今为止最智能的模型。',+ displayName: 'Claude Sonnet 4.5',+ enabled: true,+ id: 'us.anthropic.claude-sonnet-4-5-20250929-v1:0',+ maxOutput: 64_000,+ pricing: {+ units: [+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2025-09-29',+ type: 'chat',+ },+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ structuredOutput: true,+ vision: true,+ },+ contextWindowTokens: 200_000,+ description: 'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',+ displayName: 'Claude Haiku 4.5',+ enabled: true,+ id: 'us.anthropic.claude-haiku-4-5-20251001-v1:0',+ maxOutput: 64_000,+ pricing: {+ units: [+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },+ ],+ },+ releasedAt: '2025-10-15',+ type: 'chat',+ },/*// TODO: Not support for now{diff --git a/packages/model-runtime/src/core/parameterResolver.ts b/packages/model-runtime/src/core/parameterResolver.tsindex d012cecaa58..22d9268281f 100644--- a/packages/model-runtime/src/core/parameterResolver.ts+++ b/packages/model-runtime/src/core/parameterResolver.ts@@ -263,6 +263,7 @@ export const MODEL_PARAMETER_CONFLICTS = {'claude-opus-4-20250514','claude-sonnet-4-20250514','claude-sonnet-4-5-20250929',+ 'claude-haiku-4-5-20251001',// Bedrock model IDs'anthropic.claude-opus-4-1-20250805-v1:0','us.anthropic.claude-opus-4-1-20250805-v1:0',@@ -272,5 +273,7 @@ export const MODEL_PARAMETER_CONFLICTS = {'us.anthropic.claude-sonnet-4-20250514-v1:0','anthropic.claude-sonnet-4-5-20250929-v1:0','us.anthropic.claude-sonnet-4-5-20250929-v1:0',+ 'anthropic.claude-haiku-4-5-20251001-v1:0',+ 'us.anthropic.claude-haiku-4-5-20251001-v1:0',]),};