Skip to content

The agent that grows with you

fix(local-models): pass config to resolve_llamacpp_endpoint by keyword

teknium1581af4630a60
diff --git a/hermes_cli/providers.py b/hermes_cli/providers.py
index 8c25304f6e4..5dc71f516b7 100644
--- a/hermes_cli/providers.py
+++ b/hermes_cli/providers.py
@@ -502,7 +502,7 @@ def _llamacpp_pdef() -> Optional[ProviderDef]:
try:
from hermes_cli.config import load_config_readonly
from hermes_cli.local_runtime.endpoint import resolve_llamacpp_endpoint
- endpoint = resolve_llamacpp_endpoint(load_config_readonly(), wait_for_boot_s=0)
+ endpoint = resolve_llamacpp_endpoint(config=load_config_readonly(), wait_for_boot_s=0)
except Exception:
endpoint = None
if not endpoint and not _has_staged_local_models():
diff --git a/hermes_cli/runtime_provider_custom.py b/hermes_cli/runtime_provider_custom.py
index e9f90ff49c5..db454875896 100644
--- a/hermes_cli/runtime_provider_custom.py
+++ b/hermes_cli/runtime_provider_custom.py
@@ -432,7 +432,7 @@ def _resolve_llamacpp_runtime(requested_provider: str, explicit_api_key: Optiona
rp = _rp()
try:
from hermes_cli.local_runtime.endpoint import resolve_llamacpp_endpoint
- endpoint = resolve_llamacpp_endpoint(rp.load_config())
+ endpoint = resolve_llamacpp_endpoint(config=rp.load_config())
except Exception: # noqa: BLE001 — resolution is best-effort
endpoint = None
if endpoint: