Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/const/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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',
]);
44 changes: 44 additions & 0 deletions packages/model-bank/src/aiModels/bedrock.ts
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions packages/model-runtime/src/core/parameterResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
]),
};