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