remove vendor model references

This commit is contained in:
Daniel 2026-05-08 19:14:09 +02:00
parent a6807ef7a4
commit 210ec06fe5
6 changed files with 3 additions and 40 deletions

View file

@ -3,7 +3,6 @@
!.env.example
.git
.gitignore
.agent-config
node_modules
data/
*.log

1
.gitignore vendored
View file

@ -38,7 +38,6 @@ e2e/test-results/
e2e/playwright-report/
.codex
.agent-config/
.firecrawl/
# Refactored test stack stays local for now

View file

@ -1,7 +0,0 @@
# Remap historical AI co-author trailers so repository contributors reflect human maintainers.
Daniel <danitex@danvics.com> vendor model Opus 4.6 <noreply@anthropic.com>
Daniel <danitex@danvics.com> vendor model Opus 4.6 (1M context) <noreply@anthropic.com>
Daniel <danitex@danvics.com> vendor model Opus 4.7 (1M context) <noreply@anthropic.com>
Daniel <danitex@danvics.com> vendor model Sonnet 4.5 <noreply@anthropic.com>
Daniel <danitex@danvics.com> vendor model Sonnet 4.6 <noreply@anthropic.com>
Daniel <danitex@danvics.com> vendor model Sonnet 4.6 (1M context) <noreply@anthropic.com>

View file

@ -271,7 +271,7 @@
<div style="border-top:1px solid var(--g100);padding-top:14px;">
<label style="font-size:12px;font-weight:600;color:var(--g600);display:block;margin-bottom:8px;">Discover Models from Provider API</label>
<div style="display:flex;gap:8px;flex-wrap:wrap;align-items:center;">
<input type="text" id="admin-model-search" placeholder="Search models (e.g. gemini, vendor-model, gpt)" style="font-size:13px;padding:6px 10px;border:1px solid var(--g300);border-radius:6px;flex:1;min-width:200px;">
<input type="text" id="admin-model-search" placeholder="Search models (e.g. gemini, gpt, llama)" style="font-size:13px;padding:6px 10px;border:1px solid var(--g300);border-radius:6px;flex:1;min-width:200px;">
<button id="btn-discover-models" class="btn-sm btn-primary"><i class="fas fa-magnifying-glass"></i> Search API</button>
</div>
<div id="admin-discovered-models" style="margin-top:10px;display:flex;flex-direction:column;gap:4px;max-height:400px;overflow-y:auto;">

View file

@ -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 }
};

View file

@ -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