Agents: add lean local model mode (#66495)

Merged via squash.

Prepared head SHA: d88da6082c
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com>
Reviewed-by: @ImLukeF
This commit is contained in:
Luke
2026-04-14 23:45:49 +10:00
committed by GitHub
parent dae060390b
commit 4015138df9
9 changed files with 93 additions and 2 deletions

View File

@@ -164,8 +164,10 @@ Compatibility notes for stricter OpenAI-compatible backends:
- Some smaller or stricter local backends are unstable with OpenClaw's full
agent-runtime prompt shape, especially when tool schemas are included. If the
backend works for tiny direct `/v1/chat/completions` calls but fails on normal
OpenClaw agent turns, try
`models.providers.<provider>.models[].compat.supportsTools: false` first.
OpenClaw agent turns, first try
`agents.defaults.localModelMode: "lean"` to drop heavyweight default tools
like `browser`, `cron`, and `message`; if that still fails, try
`models.providers.<provider>.models[].compat.supportsTools: false`.
- If the backend still fails only on larger OpenClaw runs, the remaining issue
is usually upstream model/server capacity or a backend bug, not OpenClaw's
transport layer.