Skip to content

feat(cron): auto-inherit compression provider from per-job settings#7633

Open
kshitijk4poor wants to merge 1 commit into
NousResearch:mainfrom
kshitijk4poor:feat/cron-compression-override
Open

feat(cron): auto-inherit compression provider from per-job settings#7633
kshitijk4poor wants to merge 1 commit into
NousResearch:mainfrom
kshitijk4poor:feat/cron-compression-override

Conversation

@kshitijk4poor

Copy link
Copy Markdown
Collaborator

Problem

Cron jobs support per-job model/provider overrides for the main chat model, but compression always uses the global compression.summary_model from config.yaml. A cron job running on Ollama still compresses via cloud providers.

Changes

Auto-inherit: when a cron job specifies a non-default provider (not auto/openrouter), set CONTEXT_COMPRESSION_PROVIDER and AUXILIARY_COMPRESSION_BASE_URL env vars before creating the AIAgent. The auxiliary client resolution chain picks these up via _resolve_task_provider_model, so compression routes through the same provider as the job's main model.

Env vars are restored after the job completes.

Closes #5438
Part of #7605

…ings (NousResearch#5438)

Cron jobs support per-job model/provider overrides for the main chat
model, but compression always uses the global config. This means a
cron job running on Ollama still compresses via cloud providers.

Auto-inherit: when a cron job specifies a non-default provider, set
CONTEXT_COMPRESSION_PROVIDER and AUXILIARY_COMPRESSION_BASE_URL env
vars before creating the AIAgent. The auxiliary client resolution
chain picks these up via _resolve_task_provider_model, so compression
routes through the same provider as the job main model.

Env vars are restored after the job completes.

Closes NousResearch#5438
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cron Cron scheduler and job management labels Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Per-job compression model override for cron jobs

2 participants