feat(model-picker): add display.model_picker_providers allowlist#20703
Closed
tymrtn wants to merge 1 commit into
Closed
feat(model-picker): add display.model_picker_providers allowlist#20703tymrtn wants to merge 1 commit into
tymrtn wants to merge 1 commit into
Conversation
Add an optional config key, display.model_picker_providers, that restricts the interactive /model picker (the inline keyboard surfaced by Telegram/Discord and other gateway adapters) to a user-chosen set of provider slugs. Behavior: - Set to a list or comma-separated string: only those provider slugs are shown in the picker. The currently-active provider is always included so the user never loses their current row. - Empty or missing: legacy behavior — all authenticated providers are listed. - Slugs are matched case-insensitively. - Only the interactive picker is filtered; typed '/model <name>' switches are unaffected. Useful when many providers are authenticated but only a handful are worth surfacing in a quick chat picker. Refs: NousResearch#12655, NousResearch#15267, NousResearch#16608
Contributor
Author
|
Closing — this allowlist is a bandaid. Tyler pointed out the actual bug: the model picker is showing providers that aren't authenticated at all. Root cause: section 1 (api_key auth path) of Filing a focused fix instead. Tracked separately. |
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an optional config key —
display.model_picker_providers— that restricts the interactive/modelpicker (the inline keyboard surfaced by Telegram/Discord and other gateway adapters) to a user-chosen set of provider slugs.When many providers are authenticated, the inline picker can balloon to dozens of rows. This lets the user scope the picker down to the handful they actually use from chat without affecting the typed
/model <name>flow.Behavior
/model <name>switches are unaffected.Config example
A comma-separated string also works:
model_picker_providers: "openai, anthropic, openrouter".Tests
tests/hermes_cli/test_list_picker_providers.py(extended, all 14 tests green):Docs
Adds a short "Model Picker Allowlist" section to
website/docs/user-guide/configuration.md.Related
Closes the long-standing ask in #12655, #15267, #16608 — pluggable / configurable scope for the
/modelchat picker.