| 178 | * so the first entry is a stable default. |
| 179 | */ |
| 180 | export function getAvailableChatModels(providers: { |
| 181 | openai: boolean; |
| 182 | anthropic: boolean; |
| 183 | }): ChatModelEntry[] { |
| 184 | return CHAT_MODELS.filter((m) => { |
| 185 | if (m.group === 'OpenAI') return providers.openai; |
| 186 | if (m.group === 'Anthropic') return providers.anthropic; |
| 187 | return false; |
| 188 | }); |
| 189 | } |
| 190 | |
| 191 | // ──────────────────────────────────────────────────────────────────── |
| 192 | // Client-side tool schemas — the three URL-param mutators the LLM can |