MCPcopy Create free account
hub / github.com/simstudioai/sim / getLargestContextProviderModel

Function getLargestContextProviderModel

apps/sim/app/(landing)/models/utils.ts:820–825  ·  view source on GitHub ↗
(provider: CatalogProvider)

Source from the content-addressed store, hash-verified

818}
819
820export function getLargestContextProviderModel(provider: CatalogProvider): CatalogModel | null {
821 if (provider.models.length === 0) return null
822 return provider.models.reduce((max, m) =>
823 (m.contextWindow ?? 0) > (max.contextWindow ?? 0) ? m : max
824 )
825}

Callers 2

ImageFunction · 0.90
buildProviderFaqsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected