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

Function getModelsByProvider

apps/desktop/main/ai/llm/index.ts:59–61  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

57
58/** 获取指定 provider 下的全部模型(内置 + 自定义) */
59export function getModelsByProvider(providerId: string): ModelDefinition[] {
60 return [...getBuiltinModelsByProvider(providerId), ...loadCustomModels().filter((m) => m.providerId === providerId)]
61}
62
63/** 按 id 查找 provider(内置优先) */
64export function getProviderDefinitionById(id: string): ProviderDefinition | null {

Callers

nothing calls this directly

Calls 2

loadCustomModelsFunction · 0.90

Tested by

no test coverage detected