mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-18 05:20:48 +00:00
Allow users to specify a different model for compaction summarization
via `agents.defaults.compaction.model`. When set, compaction uses
this model instead of the agent's primary model.
This is useful for hybrid local+cloud setups where the primary model
is a small local model (e.g. Ollama/Qwen) but compaction benefits
from a more capable summarizer (e.g. cloud Claude), or a dedicated
local model fine-tuned for summarization.
Config example:
"compaction": { "model": "openrouter/anthropic/claude-sonnet-4-5" }
Falls back to the primary model when unset (no behavior change for
existing configs).
Closes #7926
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>