Repository navigation
Description
Bug Description
models/endpoints
Labels:
bug, tui, model-picker, nvidia, usability
Description:
Problem
The interactive /model (or hermes model) picker in the Hermes TUI is hard-coded to a maximum of 50 results. This prevents users from seeing the full list of available models when using providers that return a large number of endpoints — most notably NVIDIA NIM / integrate.api.nvidia.com, which currently exposes ~120 free/public models.
As a result, many valid models (including the recently expanded NVIDIA catalog) are silently truncated and never appear in the picker, forcing users to manually type full model IDs.
These changes are not persistent across updates and are not suitable for a production workflow.
This is a usability blocker for anyone using NVIDIA, OpenRouter (large catalogs), or custom providers that return many models.
Just updated literally 30 minutes ago to the latest pull.
Steps to Reproduce
- Run
hermes model(or type/modelin an active session). - Select NVIDIA as the provider (or any provider returning >50 models).
- Observe that the interactive list stops at 50 entries even when more models are available from the provider API.
Expected Behavior
Expected Behavior
- The picker should either:
- Show all available models (or a reasonably high default such as 200), or
- Make the limit configurable via
config.yaml(e.g.model_picker.max_resultsorui.model_picker.limit).
Actual Behavior
Hard-coded limit of 50 in the internal Python code forces truncation.
Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
no bug output necessary for this issueOperating System
macOS 26.3
Python Version
3.11.15
Hermes Version
0.16.0
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
Workaround Applied
Directly edited the relevant Python source files inside the Hermes installation to raise the limit from 50 to 200. This allowed the full NVIDIA catalog (and other large providers) to appear in the picker.
Files modified (direct source edits):
- The core model picker / TUI result-limiting logic (exact file paths depend on installation method, typically under
~/.hermes/hermes-agent/or the installed package location).
Proposed Fix (optional)
Requested Fix
- Remove or significantly raise the hard-coded 50-entry cap.
- Add a proper configuration option (preferred) so users can control the limit without editing Python files.
- Ideally expose the full result set with pagination or fuzzy filtering when the list is very long.
Are you willing to submit a PR for this?
- I'd like to fix this myself and submit a PR
Activity
galvn commentedon Jun 12, 2026
I can confirm this also affects Hermes Desktop, not only the TUI
/modelflow.Tested on Windows Hermes Desktop with NVIDIA provider.
Affected Desktop surfaces:
Both surfaces eventually share the same backend path:
So the issue is not specific to one UI entry point. The truncation happens inside
list_authenticated_providers()after the provider catalog has already been discovered.I locally tested a minimal workaround that only changes
hermes_cli/model_switch.py:Then replace the picker truncation sites like:
with:
and equivalent calls for the other provider-section variables.
Validation:
python -m py_compile hermes_cli/model_switch.pypassedmax_models=50, the NVIDIA row returnedmodels=120andtotal_models=120This workaround intentionally does not require a local
nvidia-models.json; it keeps the live NVIDIA/v1/modelscatalog as the data source and only avoids truncating NVIDIA after discovery.konsisumer commentedon Jul 1, 2026
These issues look like facets of one underlying problem: #40601, #43052, #43409, #43528.
They were grouped by a semantic pass as different symptoms of one underlying problem in
comp/cli. A single coordinated fix may resolve them together — flagging for visibility; no action has been taken on the individual issues.Automated root-cause grouping. Reply to correct if these are unrelated.
teknium1 commentedon Jul 14, 2026
This is an automated hermes-sweeper review. The reported interactive-picker cap is already fixed on current main.
9705e7944ae46401ab9cb011ebd9fbcd5667b981(fix(picker): remove max_models=50 cap in interactive model pickers) removed explicitmax_models=50calls from the CLI picker, TUImodel.optionsRPC, and Desktop REST model-options path.hermes_cli/inventory.py:111now defaultsmax_modelstoNone, preserving full picker lists through the shared inventory path.tui_gateway/server.py:12902andhermes_cli/web_server.py:5370build their picker payloads without a cap.tests/hermes_cli/test_inventory.py:934covers a 100-model provider payload and asserts all 100 are returned.v2026.6.19.This also addresses the shared Desktop backend route identified in @galvn's comment.