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

Function getProviderBySlug

apps/sim/app/(landing)/models/utils.ts:608–610  ·  view source on GitHub ↗
(providerSlug: string)

Source from the content-addressed store, hash-verified

606}
607
608export function getProviderBySlug(providerSlug: string): CatalogProvider | null {
609 return MODEL_CATALOG_PROVIDERS.find((provider) => provider.slug === providerSlug) ?? null
610}
611
612export function getModelBySlug(providerSlug: string, modelSlug: string): CatalogModel | null {
613 const provider = getProviderBySlug(providerSlug)

Callers 7

generateMetadataFunction · 0.90
ProviderModelsPageFunction · 0.90
ImageFunction · 0.90
generateMetadataFunction · 0.90
ModelPageFunction · 0.90
ImageFunction · 0.90
getModelBySlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected