feat(model-switch): excluded_providers config to hide providers from /model picker
This commit is contained in:
parent
1b56d0d1a2
commit
b239ee2123
7 changed files with 245 additions and 1 deletions
|
|
@ -91,6 +91,20 @@ model_catalog:
|
|||
|
||||
The overriding manifest only needs to populate the provider block(s) it cares about. Other providers continue to resolve against the master URL.
|
||||
|
||||
### Hiding providers from the picker
|
||||
|
||||
`excluded_providers` lets you hide specific providers from the `/model` picker even when valid credentials exist. Useful when credentials are present for legacy or testing providers that shouldn't appear in normal use (e.g. an old Copilot or OpenRouter token still cached in `auth.json` or discovered via the `gh` CLI).
|
||||
|
||||
```yaml
|
||||
model_catalog:
|
||||
excluded_providers:
|
||||
- copilot
|
||||
- openrouter
|
||||
- openai
|
||||
```
|
||||
|
||||
The exclusion is matched case-insensitively against every key a provider can surface under — the Hermes id and models.dev id (built-in mapped providers), the overlay pid and resolved Hermes slug (overlay providers), and the canonical slug (canonical providers) — so a single entry like `copilot` hides the provider regardless of which section emits it. It is honored by every `/model` picker surface: the gateway interactive/text pickers, the TUI picker, and the interactive `hermes model` CLI picker. An empty list (or omitting the key) has no effect.
|
||||
|
||||
## Updating the manifest
|
||||
|
||||
Maintainers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue