fix(ai-models): mark deepseek-v4-flash as reasoning-capable - #118
Conversation
The configure route was writing `reasoning: false` for ClawBox AI
Flash, which silently suppresses OpenClaw's effort forwarding β
`reasoning_effort` and `thinking: { type: "disabled" }` payloads
never reach DeepSeek. The chat's Effort picker becomes a no-op: the
agent reports "thinking off" no matter which level you select.
Per OpenClaw's built-in catalog, both V4 surfaces (Flash + Pro) are
thinking-capable. Verified against the cloud API directly: sending
`thinking: { type: "disabled" }` truly disables reasoning (12 total
tokens vs 30+ baseline), and `reasoning_effort: high|max` graduates
the depth as advertised.
Flips Flash's flag to true and lifts the explanation comment to
struct level so it covers both entries β Pro will regress symmetric-
ally if someone flips its flag back to false in the future.
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: π Files selected for processing (1)
π WalkthroughWalkthroughThe ClawBox AI Flash model configuration enables the ChangesAI Model Configuration Update
Estimated code review effortπ― 1 (Trivial) | β±οΈ ~2 minutes Poem
π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Summary
The configure route was emitting `reasoning: false` for ClawBox AI Flash in the deepseek provider definition. OpenClaw's gateway uses that flag to gate effort-param forwarding, so on Flash:
Per OpenClaw's thinking-levels docs and built-in catalog, both V4 surfaces are thinking-capable: `deepseek-v4-flash` and `deepseek-v4-pro` are both classified as "V4 thinking-capable surface." Pro's flag was already correct; Flash was the outlier.
Verification
Direct test against the cloud API:
The cloud honors the exact payloads OpenClaw's gateway sends β the flag was the only blocker.
Change
Test plan
Behavioral note
After this lands, fresh installs on Flash will start advertising the Effort picker as functional. No perf impact server-side; the gateway forwards a small extra param. The user-visible change is exactly what was missing: Effort: Off β fast no-thinking responses.
Summary by CodeRabbit