mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
💄 style: add new bedrock model support (#9826)
* ✨ feat: add new bedrock model support * 🔥 chore: remove model provider config per reviewer feedback Removed Claude Sonnet 4.5 and Claude Haiku 4.5 model configurations from the Bedrock provider config file as per reviewer request. The model definitions remain in the model bank (packages/model-bank/src/aiModels/bedrock.ts) and can be enabled once needed. --------- Co-authored-by: Zhao <zhaokm@ZhaodeMacBook-Pro.local>
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
]),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user