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

Function getBuiltinModelById

packages/core/src/ai/model-catalog.ts:895–897  ·  view source on GitHub ↗
(providerId: string, modelId: string)

Source from the content-addressed store, hash-verified

893
894/** 按 id + providerId 查找内置模型 */
895export function getBuiltinModelById(providerId: string, modelId: string): ModelDefinition | null {
896 return BUILTIN_MODELS.find((m) => m.providerId === providerId && m.id === modelId) || null
897}

Callers 2

findModelDefinitionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected