You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent Anthropic API errors from empty message content
- Check for empty text content before adding to assistant messages
- Only append messages with non-empty content to avoid API errors
- Filter empty strings in user prompts before yielding text blocks
This fixes the invalid_request_error: "all messages must have non-empty content except for the optional final assistant message"
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments