Skip to content

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

Open
colesussmeier wants to merge 1 commit into
mainfrom
fix/claude-fable-none-content
Open

Fall back to reasoning content when LLM message content is None#278
colesussmeier wants to merge 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>
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