Files
hermes-agent/hermes_cli
Teknium 34d2a332ef fix(models): use curated list for Nous in provider_model_ids()
provider_model_ids('nous') was calling fetch_nous_models() which
returns the FULL live Nous API catalog (382 models including image
generators, rerankers, and non-agentic models). This caused the
/model picker fallback to dump hundreds of models into the list,
making it unusable.

PR #10146 fixed the /model picker to prefer the curated list first,
but the fallback still called provider_model_ids() which returned
382 models. On WSL2 environments where stale .pyc caches prevented
the #10146 fix from taking effect, users saw the full catalog.

Fix: Return the curated _PROVIDER_MODELS['nous'] list (29 models)
directly, matching the pattern used by hermes model, the gateway
picker, and the OpenRouter flow (which also uses curated lists
cross-referenced against the live API rather than raw live data).

Before: provider_model_ids('nous') → 382 models (live API)
After:  provider_model_ids('nous') → 29 models (curated)
2026-04-15 03:49:16 -07:00
..