(provider: LLMProvider, modelId: string)
| 167 | } |
| 168 | |
| 169 | export function getModelInfo(provider: LLMProvider, modelId: string): ModelInfo | undefined { |
| 170 | return LLM_PROVIDER_CONFIGS[provider]?.models.find((m) => m.id === modelId); |
| 171 | } |
| 172 | |
| 173 | export function getModelsByCategory(provider: LLMProvider, category: ModelCategory): ModelInfo[] { |
| 174 | return LLM_PROVIDER_CONFIGS[provider]?.models.filter((m) => m.category === category) ?? []; |
nothing calls this directly
no outgoing calls
no test coverage detected