Skip to content

Commit 223b137

Browse files
committed
remove inherited reseller flags
1 parent 8d37ecd commit 223b137

2 files changed

Lines changed: 0 additions & 39 deletions

File tree

apps/sim/lib/copilot/vfs/serializers.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -329,18 +329,6 @@ interface StaticModelOption {
329329
deprecated?: boolean
330330
}
331331

332-
interface TierFlags {
333-
recommended?: boolean
334-
speedOptimized?: boolean
335-
deprecated?: boolean
336-
}
337-
338-
const RESELLER_BASE_PREFIX: Record<string, string> = {
339-
'azure-openai': 'azure/',
340-
'azure-anthropic': 'azure-anthropic/',
341-
vertex: 'vertex/',
342-
}
343-
344332
const DYNAMIC_PROVIDERS_NOTE = {
345333
note: 'The options array above lists Sim\'s static provider catalog. These providers also accept user-configured models that are NOT enumerated here: the user may have additional ids available at runtime. Any model id prefixed with one of the slashes below is accepted by the server, as is any bare id that does not match a static provider pattern (typically a local Ollama tag like "llama3.1:8b"). The UI dropdown shows the user\'s actual installed models; if the user references one by name, use that id verbatim.',
346334
prefixes: DYNAMIC_MODEL_PROVIDERS.map((p) => `${p}/`),
@@ -350,21 +338,6 @@ function getStaticModelOptionsForVFS(): StaticModelOption[] {
350338
const hostedProviders = new Set(['openai', 'anthropic', 'google'])
351339
const dynamicProviders = new Set<string>(DYNAMIC_MODEL_PROVIDERS)
352340

353-
const baseTierFlags = new Map<string, TierFlags>()
354-
for (const providerId of hostedProviders) {
355-
const def = PROVIDER_DEFINITIONS[providerId]
356-
if (!def) continue
357-
for (const model of def.models) {
358-
if (model.recommended || model.speedOptimized || model.deprecated) {
359-
baseTierFlags.set(model.id, {
360-
...(model.recommended && { recommended: true }),
361-
...(model.speedOptimized && { speedOptimized: true }),
362-
...(model.deprecated && { deprecated: true }),
363-
})
364-
}
365-
}
366-
}
367-
368341
const models: StaticModelOption[] = []
369342

370343
for (const [providerId, def] of Object.entries(PROVIDER_DEFINITIONS)) {
@@ -378,16 +351,6 @@ function getStaticModelOptionsForVFS(): StaticModelOption[] {
378351
if (model.recommended) option.recommended = true
379352
if (model.speedOptimized) option.speedOptimized = true
380353
if (model.deprecated) option.deprecated = true
381-
382-
if (!option.recommended && !option.speedOptimized && !option.deprecated) {
383-
const prefix = RESELLER_BASE_PREFIX[providerId]
384-
if (prefix && model.id.startsWith(prefix)) {
385-
const baseId = model.id.slice(prefix.length)
386-
const inherited = baseTierFlags.get(baseId)
387-
if (inherited) Object.assign(option, inherited)
388-
}
389-
}
390-
391354
models.push(option)
392355
}
393356
}

apps/sim/providers/models.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
23152315
},
23162316
contextWindow: 200000,
23172317
releaseDate: '2025-09-29',
2318-
recommended: true,
23192318
},
23202319
{
23212320
id: 'bedrock/anthropic.claude-haiku-4-5-20251001-v1:0',
@@ -2331,7 +2330,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
23312330
},
23322331
contextWindow: 200000,
23332332
releaseDate: '2025-10-15',
2334-
speedOptimized: true,
23352333
},
23362334
{
23372335
id: 'bedrock/anthropic.claude-opus-4-1-20250805-v1:0',

0 commit comments

Comments
 (0)