The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): the /model picker reads the disk-cached live catalog like the gateway pickers
kshitij8c6e97ee7a1c
diff --git a/hermes_cli/cli_model_switch_mixin.py b/hermes_cli/cli_model_switch_mixin.pyindex 82062fc6bf7..1f605f1d6ad 100644--- a/hermes_cli/cli_model_switch_mixin.py+++ b/hermes_cli/cli_model_switch_mixin.py@@ -694,12 +694,14 @@ class CLIModelSwitchMixin:returnprovider_data = providers[selected]# Curated list (same as `hermes model` / gateway pickers); live catalog only when- # it is empty (user-defined endpoints).+ # it is empty (user-defined endpoints, per-resource providers such as azure-foundry).+ # Disk-cached like the gateway pickers: the live probe can walk several api-version+ # fallbacks with a 6 s timeout each, which must not block the REPL on every select.model_list = provider_data.get("models", [])if not model_list:try:- from hermes_cli.models import provider_model_ids- model_list = provider_model_ids(provider_data["slug"]) or model_list+ from hermes_cli.models import cached_provider_model_ids+ model_list = cached_provider_model_ids(provider_data["slug"]) or model_listexcept Exception:passstate.update(