Skip to content

Fall back to reasoning content when LLM message content is None#278

Merged
colesussmeier merged 1 commit into
mainfrom
fix/claude-fable-none-content
Jun 18, 2026
Merged

Fall back to reasoning content when LLM message content is None#278
colesussmeier merged 1 commit into
mainfrom
fix/claude-fable-none-content

Conversation

@colesussmeier

Copy link
Copy Markdown
Contributor

claude-fable-5 returns its answer in the reasoning/thinking content with no separate text block, so litellm sets message.content to None and the strict str assertion crashed every forecast. Fall back to reasoning content when content is None, and include the finish reason in the assertion message for easier diagnosis of empty responses.

claude-fable-5 returns its answer in the reasoning/thinking content with
no separate text block, so litellm sets message.content to None and the
strict str assertion crashed every forecast. Fall back to reasoning
content when content is None, and include the finish reason in the
assertion message for easier diagnosis of genuinely empty responses.

Co-authored-by: Cursor <cursoragent@cursor.com>
@colesussmeier colesussmeier merged commit 19e1c3a into main Jun 18, 2026
56 of 57 checks passed
@colesussmeier colesussmeier deleted the fix/claude-fable-none-content branch June 18, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants