fix(cli): use keyword args for fetch_nous_models (always TypeError)
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.
This commit is contained in:
parent
ba728f3e63
commit
f95c6a221b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
from hermes_cli.auth import fetch_nous_models, resolve_nous_runtime_credentials
|
||||||
creds = resolve_nous_runtime_credentials()
|
creds = resolve_nous_runtime_credentials()
|
||||||
if creds:
|
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:
|
if live:
|
||||||
return live
|
return live
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue