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