#Reduce LLM reply length
1 messages · Page 1 of 1 (latest)
How to make LLM respond shorter, for example 1 ~ 3 sentences at most?
Yep.
Best fix: add a short style rule in SOUL.md or AGENTS.md, for example:
Keep replies short and focused.
Default to 1 to 3 sentences max.
No bullet lists unless the user asks.
If you want a harder limit, also set model params in config, for example:
{
agents: {
defaults: {
params: {
maxTokens: 120,
textVerbosity: "low"
}
}
}
}
textVerbosity: "low" is mainly useful on OpenAI/GPT-5 style models, while the prompt rule works across models. Docs: https://docs.openclaw.ai/concepts/soul and https://docs.openclaw.ai/gateway/configuration-reference
Will textVerbosity work for other model like Gemini or Deepseek?
Not reliably, no.
textVerbosity is an OpenAI-style knob, so for Gemini or DeepSeek you should assume it does not help. For cross-model control, put the rule in SOUL.md / AGENTS.md instead, for example: Default to 1-3 sentences, concise, no bullet list unless asked.
If you use maxTokens, it can help a bit, but it is a blunt limit and may cut answers off mid-sentence.