From f95c6a221b8a8d7fed08529818abefb03d6434e8 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Tue, 17 Mar 2026 03:42:46 -0700 Subject: [PATCH] fix(cli): use keyword args for fetch_nous_models (always TypeError) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fetch_nous_models() uses keyword-only parameters (the * separator in its signature), but models.py called it with positional args and in the wrong order (api_key first, base_url second). This always raised TypeError, silently caught by except Exception: pass. Result: Nous provider model list was completely broken — /model autocomplete and provider_model_ids('nous') always fell back to the static model catalog instead of fetching live models. --- hermes_cli/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/models.py b/hermes_cli/models.py index 25c9eea54..174aa9475 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -473,7 +473,7 @@ def provider_model_ids(provider: Optional[str]) -> list[str]: from hermes_cli.auth import fetch_nous_models, resolve_nous_runtime_credentials creds = resolve_nous_runtime_credentials() if creds: - live = fetch_nous_models(creds.get("api_key", ""), creds.get("base_url", "")) + live = fetch_nous_models(api_key=creds.get("api_key", ""), inference_base_url=creds.get("base_url", "")) if live: return live except Exception: