mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-11 05:22:41 +00:00
Fixes #4498. When returns False, previously returned early without removing the key from messages. This left non-serializable File objects in the payload, causing TypeError during JSON serialization by httpx. Now the key is always stripped from every message, with a warning logged when files are dropped because the model lacks multimodal support or crewai-files is not installed. Co-Authored-By: João <joao@crewai.com>