Skip to content

[Bug]: Cron job model unable to override profile model (Not sure if this is a bug or is a stand design) #46506

Closed as not planned

Description

@KKTY-Agent

Bug Description

I actually created a subagent and set up the Openrouter model in the profile. But I would like to use the local Ollama model for the daily cron job for this agent. And eventually, it doesn't work.
The AI responded back to me:

Found that the cron job model override with provider: ollama was not actually routing to Ollama — it was still going through OpenRouter (base_url: null in jobs.json).
The cron job model override only affects the cron session. When you talk to an agent directly in their own profile session, they use whatever is in their profile's config.yaml — which is still the OpenRouter model.

Is there a way we can separate the models to use them? Or is this a bug or design structure?
The reason is to save costs when a CRON job runs using a local LLM.

Steps to Reproduce

  1. Create SubAgent
  2. setup profile Provider model
  3. create cron job
  4. setup cron job with different provider and models
  5. doesn't work

Expected Behavior

  1. we can separate models by different section.

Actual Behavior

Hermes still using that the cron job model override with provider: ollama was not actually routing to Ollama — it was still going through OpenRouter

Affected Component

Skills (skill loading, skill hub, skill guard)

Messaging Platform (if gateway-related)

No response

Debug Report

none

Operating System

Windows 11

Python Version

No response

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Thx, Right now I have 8 sub-agents that is running, but I just want to use local LLM for them on the cron jobs.

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    comp/cronCron scheduler and job management
    on Jun 15, 2026
  2. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    This is an automated hermes-sweeper review. Current main already supports the requested independent cron inference routing.

    • cron/scheduler.py:2805-2929 gives per-job model/provider/base_url precedence and resolves that runtime for each cron execution.
    • cron/scheduler.py:3046-3051 passes the resolved model, provider, and endpoint to the fresh cron AIAgent.
    • tools/cronjob_tools.py:1123-1137 persists the agent-facing model/provider override and forwards base_url.
    • Commit 28b3764d1e2c015585fe9dca017fed8f3664ebb7 (fix(cron): support per-job runtime overrides) added this behavior and coverage; it is contained in release v2026.3.17.
    • For Ollama, set the cron job's endpoint explicitly (for example http://localhost:11434/v1); hermes_cli/runtime_provider.py:917-972 routes the local alias through the custom endpoint path rather than the profile's OpenRouter route.

    The later linked duplicate #49046 describes the same provider/model/base_url override path; its reported fallback is addressed by the current implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cronCron scheduler and job managementsweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions