MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / defaultFindModel

Function defaultFindModel

packages/node-runtime/src/ai/llm-builder.ts:63–66  ·  view source on GitHub ↗
(providerId: string, modelId: string)

Source from the content-addressed store, hash-verified

61const DEFAULT_CONTEXT_WINDOW = 128000
62
63function defaultFindModel(providerId: string, modelId: string): ModelDefinition | null {
64 const forProvider = getBuiltinModelsByProvider(providerId)
65 return forProvider.find((m) => m.id === modelId) || BUILTIN_MODELS.find((m) => m.id === modelId) || null
66}
67
68const BUILTIN_PROVIDER_API: Record<string, PiApi> = {
69 gemini: 'google-generative-ai',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected