MCPcopy Index your code
hub / github.com/simstudioai/sim / getStaticModelOptionsForVFS

Function getStaticModelOptionsForVFS

apps/sim/lib/copilot/vfs/serializers.ts:360–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358} as const
359
360function getStaticModelOptionsForVFS(): StaticModelOption[] {
361 const hostedProviders = new Set(['openai', 'anthropic', 'google'])
362 const dynamicProviders = new Set<string>(DYNAMIC_MODEL_PROVIDERS)
363
364 const models: StaticModelOption[] = []
365
366 for (const [providerId, def] of Object.entries(PROVIDER_DEFINITIONS)) {
367 if (dynamicProviders.has(providerId)) continue
368 for (const model of def.models) {
369 const option: StaticModelOption = {
370 id: model.id,
371 provider: providerId,
372 hosted: hostedProviders.has(providerId),
373 }
374 if (model.recommended) option.recommended = true
375 if (model.speedOptimized) option.speedOptimized = true
376 if (model.deprecated) option.deprecated = true
377 models.push(option)
378 }
379 }
380
381 return models
382}
383
384/**
385 * Serialize a SubBlockConfig for the VFS component schema.

Callers 1

serializeBlockSchemaFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected