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

Function getBuiltinModelsByProvider

packages/core/src/ai/model-catalog.ts:890–892  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

888
889/** 按 provider 筛选内置模型 */
890export function getBuiltinModelsByProvider(providerId: string): ModelDefinition[] {
891 return BUILTIN_MODELS.filter((m) => m.providerId === providerId)
892}
893
894/** 按 id + providerId 查找内置模型 */
895export function getBuiltinModelById(providerId: string, modelId: string): ModelDefinition | null {

Callers 4

registerAiLlmRoutesFunction · 0.90
defaultFindModelFunction · 0.90
getModelsByProviderFunction · 0.90
providerDefinitionToInfoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected