Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cron/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,10 @@ def _run_job_impl(job: dict) -> tuple[bool, str, str, Optional[str]]:
}
if job.get("base_url"):
runtime_kwargs["explicit_base_url"] = job.get("base_url")
if job.get("api_key"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current cron job creation and the model-callable cron tool do not define or persist an api_key field (cron/jobs.py:945-952, cron/jobs.py:1088-1099, tools/cronjob_tools.py:667-672). Please establish the supported producer/compatibility contract and add a regression test that proves this value reaches resolve_runtime_provider.

runtime_kwargs["explicit_api_key"] = os.path.expandvars(
job.get("api_key", "")
)
runtime = resolve_runtime_provider(**runtime_kwargs)
except AuthError as auth_exc:
# Primary provider auth failed — try fallback chain before giving up.
Expand Down
7 changes: 7 additions & 0 deletions hermes_cli/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ class HermesOverlay:
"opencode": HermesOverlay(
transport="openai_chat",
is_aggregator=True,
extra_env_vars=("OPENCODE_ZEN_API_KEY",),
base_url_env_var="OPENCODE_ZEN_BASE_URL",
),
"opencode-go": HermesOverlay(
transport="openai_chat",
is_aggregator=True,
extra_env_vars=("OPENCODE_GO_API_KEY",),
base_url_env_var="OPENCODE_GO_BASE_URL",
),
"kilo": HermesOverlay(
Expand All @@ -162,6 +164,11 @@ class HermesOverlay:
is_aggregator=True,
base_url_env_var="HF_BASE_URL",
),
"gemini": HermesOverlay(
transport="openai_chat",
extra_env_vars=("GOOGLE_API_KEY", "GEMINI_API_KEY"),
base_url_env_var="GEMINI_BASE_URL",
),
"novita": HermesOverlay(
transport="openai_chat",
is_aggregator=True,
Expand Down