Files
openclaw/docs/concepts
starbuck100 c44cc77fa6 compaction: add configurable model override
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>
2026-03-08 10:38:10 -07:00
..
2026-03-06 08:55:58 -05:00