From eb8c86f70ed332ef4fc7f7a51006a75295208911 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Mar 2026 18:23:26 +0100 Subject: [PATCH] Fix: Bedrock vendor model models updated with verified IDs from AWS docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Source: docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html - Added: vendor model Opus 4.6 (anthropic.agent-config-opus-4-6-v1) - Added: vendor model Opus 4.5 (anthropic.agent-config-opus-4-5-20251101-v1:0) - Added: vendor model Sonnet 4.6 (anthropic.agent-config-sonnet-4-6) — new default - Added: vendor model Sonnet 4.5 (anthropic.agent-config-sonnet-4-5-20250929-v1:0) - Kept: vendor model Sonnet 4, Haiku 4.5, vendor model 3.5 Haiku - Fallback updated to vendor model Haiku 4.5 - Bump version to 2.9.0 --- package.json | 2 +- src/utils/models.js | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index abc6b6d..5d6c7ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pediatric-ai-scribe", - "version": "2.8.0", + "version": "2.9.0", "description": "AI-powered pediatric clinical documentation platform", "main": "server.js", "scripts": { diff --git a/src/utils/models.js b/src/utils/models.js index 9300925..58780b8 100644 --- a/src/utils/models.js +++ b/src/utils/models.js @@ -27,14 +27,20 @@ var OPENROUTER_MODELS = [ ]; var BEDROCK_MODELS = [ - // vendor model models only — verified Bedrock IDs (2025) - { id: 'anthropic/vendor-model-sonnet-4', name: 'vendor model Sonnet 4', cost: '~$0.015', tag: 'RECOMMENDED', category: 'premium', + // vendor model models only — verified IDs from AWS docs (models-supported.html) + { id: 'anthropic/vendor-model-opus-4-6', name: 'vendor model Opus 4.6', cost: '~$0.075', tag: 'BEST NUANCE', category: 'premium', + bedrockId: 'anthropic.agent-config-opus-4-6-v1' }, + { id: 'anthropic/vendor-model-opus-4-5', name: 'vendor model Opus 4.5', cost: '~$0.075', tag: 'OPUS', category: 'premium', + bedrockId: 'anthropic.agent-config-opus-4-5-20251101-v1:0' }, + { id: 'anthropic/vendor-model-sonnet-4-6', name: 'vendor model Sonnet 4.6', cost: '~$0.015', tag: 'RECOMMENDED', category: 'premium', + bedrockId: 'anthropic.agent-config-sonnet-4-6' }, + { id: 'anthropic/vendor-model-sonnet-4-5', name: 'vendor model Sonnet 4.5', cost: '~$0.015', tag: 'SMART', category: 'premium', + bedrockId: 'anthropic.agent-config-sonnet-4-5-20250929-v1:0' }, + { id: 'anthropic/vendor-model-sonnet-4', name: 'vendor model Sonnet 4', cost: '~$0.015', tag: 'SOLID', category: 'premium', bedrockId: 'anthropic.agent-config-sonnet-4-20250514-v1:0' }, - { id: 'anthropic/vendor-model-3-7-sonnet', name: 'vendor model 3.7 Sonnet', cost: '~$0.015', tag: 'SMART', category: 'premium', - bedrockId: 'anthropic.agent-config-3-7-sonnet-20250219-v1:0' }, - { id: 'anthropic/vendor-model-3.5-sonnet', name: 'vendor model 3.5 Sonnet v2', cost: '~$0.015', tag: 'MEDICAL', category: 'premium', - bedrockId: 'anthropic.agent-config-3-5-sonnet-20241022-v2:0' }, - { id: 'anthropic/vendor-model-3.5-haiku', name: 'vendor model 3.5 Haiku', cost: '~$0.003', tag: 'FAST', category: 'smart', + { id: 'anthropic/vendor-model-haiku-4-5', name: 'vendor model Haiku 4.5', cost: '~$0.003', tag: 'FAST', category: 'smart', + bedrockId: 'anthropic.agent-config-haiku-4-5-20251001-v1:0' }, + { id: 'anthropic/vendor-model-3.5-haiku', name: 'vendor model 3.5 Haiku', cost: '~$0.002', tag: 'VALUE', category: 'smart', bedrockId: 'anthropic.agent-config-3-5-haiku-20241022-v1:0' } ]; @@ -60,7 +66,7 @@ function getAvailableModels() { function getDefaultModel() { switch (activeProvider) { - case 'bedrock': return 'anthropic/vendor-model-sonnet-4'; + case 'bedrock': return 'anthropic/vendor-model-sonnet-4-6'; case 'azure': return process.env.AZURE_DEPLOYMENT_NAME || 'gpt-4o-mini'; case 'openrouter': default: return 'google/gemini-2.5-flash'; @@ -69,7 +75,7 @@ function getDefaultModel() { function getFallbackModel() { switch (activeProvider) { - case 'bedrock': return 'anthropic/vendor-model-3.5-haiku'; + case 'bedrock': return 'anthropic/vendor-model-haiku-4-5'; case 'azure': return process.env.AZURE_DEPLOYMENT_NAME || 'gpt-4o-mini'; case 'openrouter': default: return 'deepseek/deepseek-chat-v3-0324';