mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-05 23:19:22 +00:00
Fixes #4427. Anthropic API rejects messages with empty content for non-assistant roles. This adds sanitization in _format_messages_for_anthropic to replace empty or whitespace-only content in user messages with a single space placeholder. Co-Authored-By: João <joao@crewai.com>