Files
crewAI/lib
Devin AI ae3f375521 fix: strip File objects from messages when multimodal is unsupported
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>
2026-02-16 16:16:49 +00:00
..