feat. Custom Thinking effort #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When sending an event to openclaw we want to be able to configure the "thinking" prop with a env variable like AGENT_THINK_EFFORT which is limited to "low" "medium" and "high" or "xhigh" if there is an "openai" in the OPENCLAW_MODEL variable
and we should also support "thinking":"off"
@luna can you sum this up in a little markdown format?
Summary: Custom Thinking Effort Feature
Goal: Allow configuring the "thinking" property for OpenClaw events via environment variables.
Proposed Changes:
AGENT_THINK_EFFORTenvironment variable.off,low,medium,high.xhighifOPENCLAW_MODELcontains "openai".@luna what files would be modified? With docs and stuff
Only 2 files would need changes:
1.
main.pyAGENT_THINK_EFFORTtorequired_datalist"thinking": "low"with the value from env var (or default to "low")2.
README.mdAGENT_THINK_EFFORTto the Environment Variables table with descriptionNo other changes needed — the webhook handler structure stays the same.
@luna can you start working on this? Also the effort would not be required, its just gonna be "low" by default
I have implemented the custom thinking effort feature. You can now use the
OPENCLAW_THINKINGenvironment variable to set the desired effort level (defaults tolow).I have opened PR #7 for this change.