strix icon indicating copy to clipboard operation
strix copied to clipboard

[BUG] litellm bad request expected thinking or redacted_thinking

Open Aws7 opened this issue 4 weeks ago • 1 comments

its suddenly show this error after a while of scanning on multiple agents as well as the master too

screenshot: https://imgur.com/a/MXynlYk

System Information:

  • OS: mac os
  • Strix Version or Commit: 0.4.0
  • Python Version: 3.12
  • LLM Used: [Claude Sonnet 4.5]

Aws7 avatar Nov 30 '25 21:11 Aws7

I have the same issue, it appears that Strix doesn't handle thinking block format required by Claude

A temporary workaround is to remove"claude-sonnet-4-5*" and "claude-haiku-4-5*" from REASONING_EFFORT_PATTERNS in strix/llm/llm.py https://github.com/usestrix/strix/blob/b74132b2dcbf7fc6d2ebed07fbe3e06bcedf247f/strix/llm/llm.py#L56

However this entirely disables thinking mode for Claude.

v4resk avatar Dec 03 '25 20:12 v4resk