The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(local-models): pass config to resolve_llamacpp_endpoint by keyword
teknium1581af4630a60
diff --git a/hermes_cli/providers.py b/hermes_cli/providers.pyindex 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_readonlyfrom 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 = Noneif not endpoint and not _has_staged_local_models():diff --git a/hermes_cli/runtime_provider_custom.py b/hermes_cli/runtime_provider_custom.pyindex 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: Optionarp = _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-effortendpoint = Noneif endpoint: