The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(models): get_codex_model_ids documents its fallback return
kshitijk4poorb7200efef01d
diff --git a/hermes_cli/codex_models.py b/hermes_cli/codex_models.pyindex fa8594e35af..838c7343ace 100644--- a/hermes_cli/codex_models.py+++ b/hermes_cli/codex_models.py@@ -215,7 +215,9 @@ def get_codex_model_ids(access_token: Optional[str] = None, base_url: Optional[s"""Available Codex model IDs: live API (if token) > config.toml default > local cache > defaults.Pass the ``base_url`` resolved together with ``access_token`` (runtime/pool route) so live- discovery asks the credential's own host."""+ discovery asks the credential's own host. Without a live answer the result is+ ``CuratedFallbackModels``: a cache placeholder that never replaces a verified catalog, since+ account-gated rows such as Astra are absent from the offline hints."""codex_home = Path(os.getenv("CODEX_HOME", "").strip() or str(Path.home() / ".codex")).expanduser()if access_token:api_models = _fetch_models_from_api(access_token, base_url=base_url)diff --git a/hermes_cli/models.py b/hermes_cli/models.pyindex 9ec795bd7a9..58c5599a460 100644--- a/hermes_cli/models.py+++ b/hermes_cli/models.py@@ -1339,8 +1339,6 @@ def _codex_catalog(normalized: str, force_refresh: bool) -> list[str]:access_token = Noneexcept Exception:access_token = None- # A failed live fetch returns ``CuratedFallbackModels``: account-gated rows such as Astra are- # absent from the offline hints, so they must never replace a verified row.return get_codex_model_ids(access_token=access_token, base_url=base_url)