From 210ec06fe57f29da13e82e4faa5cf502a5ef2ac6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 May 2026 19:14:09 +0200 Subject: [PATCH] remove vendor model references --- .dockerignore | 1 - .gitignore | 1 - .mailmap | 7 ------- public/components/admin.html | 2 +- src/utils/logger.js | 2 -- src/utils/models.js | 30 ++---------------------------- 6 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 .mailmap diff --git a/.dockerignore b/.dockerignore index caf9e47..7bc0b6c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,7 +3,6 @@ !.env.example .git .gitignore -.agent-config node_modules data/ *.log diff --git a/.gitignore b/.gitignore index 1fd352d..fc083cf 100644 --- a/.gitignore +++ b/.gitignore @@ -38,7 +38,6 @@ e2e/test-results/ e2e/playwright-report/ .codex -.agent-config/ .firecrawl/ # Refactored test stack stays local for now diff --git a/.mailmap b/.mailmap deleted file mode 100644 index f08595b..0000000 --- a/.mailmap +++ /dev/null @@ -1,7 +0,0 @@ -# Remap historical AI co-author trailers so repository contributors reflect human maintainers. -Daniel vendor model Opus 4.6 -Daniel vendor model Opus 4.6 (1M context) -Daniel vendor model Opus 4.7 (1M context) -Daniel vendor model Sonnet 4.5 -Daniel vendor model Sonnet 4.6 -Daniel vendor model Sonnet 4.6 (1M context) diff --git a/public/components/admin.html b/public/components/admin.html index 28a30ae..f104a43 100644 --- a/public/components/admin.html +++ b/public/components/admin.html @@ -271,7 +271,7 @@
- +
diff --git a/src/utils/logger.js b/src/utils/logger.js index f768fa1..6a71e7b 100644 --- a/src/utils/logger.js +++ b/src/utils/logger.js @@ -38,8 +38,6 @@ function estimateCost(model, inputTokens, outputTokens) { 'deepseek/deepseek-r1': { input: 0.55, output: 2.19 }, 'deepseek/deepseek-r1:free': { input: 0, output: 0 }, 'qwen/qwen3-30b-a3b:free': { input: 0, output: 0 }, - 'anthropic/vendor-model-sonnet-4': { input: 3.00, output: 15.00 }, - 'anthropic/vendor-model-3-haiku': { input: 0.25, output: 1.25 }, 'openai/gpt-4.1-mini': { input: 0.40, output: 1.60 }, 'meta-llama/llama-3.3-70b-instruct': { input: 0.10, output: 0.16 } }; diff --git a/src/utils/models.js b/src/utils/models.js index eb938b7..16ed694 100644 --- a/src/utils/models.js +++ b/src/utils/models.js @@ -19,10 +19,6 @@ var OPENROUTER_MODELS = [ { id: 'openai/gpt-4.1', name: 'GPT-4.1', cost: '~$0.01', tag: 'PREMIUM', category: 'premium' }, { id: 'openai/gpt-4.1-mini', name: 'GPT-4.1 Mini', cost: '~$0.003', tag: 'SMART', category: 'smart' }, { id: 'openai/o4-mini', name: 'o4-mini (Reasoning)', cost: '~$0.01', tag: 'REASONING', category: 'premium' }, - { id: 'anthropic/vendor-model-opus-4-6', name: 'vendor model Opus 4.6', cost: '~$0.075', tag: 'BEST NUANCE', category: 'premium' }, - { id: 'anthropic/vendor-model-sonnet-4-6', name: 'vendor model Sonnet 4.6', cost: '~$0.015', tag: 'RECOMMENDED', category: 'premium' }, - { id: 'anthropic/vendor-model-sonnet-4', name: 'vendor model Sonnet 4', cost: '~$0.015', tag: 'PREMIUM', category: 'premium' }, - { id: 'anthropic/vendor-model-3.5-sonnet', name: 'vendor model 3.5 Sonnet', cost: '~$0.015', tag: 'MEDICAL', category: 'premium' }, { id: 'mistralai/mistral-large-2411', name: 'Mistral Large', cost: '~$0.006', tag: 'GOOD', category: 'smart' }, { id: 'mistralai/mistral-small-3.2-24b-instruct:free', name: 'Mistral Small Free', cost: 'FREE', tag: 'FREE', category: 'free' } ]; @@ -32,24 +28,6 @@ var BEDROCK_MODELS = [ // us. prefix = cross-region inference profile (required for most newer models) // maxOut = model's max output token limit (omit if >= 8192) - // ── Anthropic vendor model (all use inference profiles) ── - { id: 'anthropic/vendor-model-opus-4-6', name: 'vendor model Opus 4.6', cost: '~$0.075', tag: 'BEST', category: 'premium', - bedrockId: 'us.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: 'us.anthropic.agent-config-opus-4-5-20251101-v1:0' }, - { id: 'anthropic/vendor-model-opus-4-1', name: 'vendor model Opus 4.1', cost: '~$0.075', tag: 'MEDICAL', category: 'premium', - bedrockId: 'us.anthropic.agent-config-opus-4-1-20250805-v1:0' }, - { id: 'anthropic/vendor-model-sonnet-4-6', name: 'vendor model Sonnet 4.6', cost: '~$0.015', tag: 'RECOMMENDED', category: 'premium', - bedrockId: 'us.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: 'us.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: 'us.anthropic.agent-config-sonnet-4-20250514-v1:0' }, - { id: 'anthropic/vendor-model-haiku-4-5', name: 'vendor model Haiku 4.5', cost: '~$0.003', tag: 'FAST', category: 'smart', - bedrockId: 'us.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: 'us.anthropic.agent-config-3-5-haiku-20241022-v1:0' }, - // ── Amazon Nova (inference profiles) ── { id: 'amazon/nova-pro', name: 'Amazon Nova Pro', cost: '~$0.008', tag: 'SMART', category: 'smart', bedrockId: 'us.amazon.nova-pro-v1:0' }, @@ -127,10 +105,6 @@ var VERTEX_MODELS = [ vertexId: 'gemini-1.5-pro-002' }, { id: 'gemini-1.5-flash', name: 'Gemini 1.5 Flash', cost: '~$0.001', tag: 'VALUE', category: 'fast', vertexId: 'gemini-1.5-flash-002' }, - { id: 'vendor-model-sonnet-4-6@vertex', name: 'vendor model Sonnet 4.6 (Vertex)', cost: '~$0.015', tag: 'PREMIUM', category: 'premium', - vertexId: 'vendor-model-sonnet-4-6@20250514' }, - { id: 'vendor-model-haiku-4-5@vertex', name: 'vendor model Haiku 4.5 (Vertex)', cost: '~$0.003', tag: 'FAST', category: 'smart', - vertexId: 'vendor-model-haiku-4-5@20251001' }, { id: 'llama-3.1-405b@vertex', name: 'Llama 3.1 405B (Vertex)', cost: '~$0.005', tag: 'OPEN', category: 'smart', vertexId: 'meta/llama-3.1-405b-instruct-maas' }, ]; @@ -156,7 +130,7 @@ function getAvailableModels() { function getDefaultModel() { switch (activeProvider) { - case 'bedrock': return 'anthropic/vendor-model-sonnet-4-6'; + case 'bedrock': return 'amazon/nova-pro'; case 'azure': return process.env.AZURE_DEPLOYMENT_NAME || 'gpt-4o-mini'; case 'vertex': return 'gemini-2.5-flash'; case 'litellm': return ''; // No default — set via admin panel or LITELLM_DEFAULT_MODEL env @@ -167,7 +141,7 @@ function getDefaultModel() { function getFallbackModel() { switch (activeProvider) { - case 'bedrock': return 'anthropic/vendor-model-haiku-4-5'; + case 'bedrock': return 'amazon/nova-lite'; case 'azure': return process.env.AZURE_DEPLOYMENT_NAME || 'gpt-4o-mini'; case 'vertex': return 'gemini-2.0-flash'; case 'litellm': return ''; // No fallback — use whatever the user has configured