Files
crewAI/lib/crewai/tests
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
..
2026-02-13 21:34:37 -03:00
2026-02-13 21:34:37 -03:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-02-13 21:34:37 -03:00
2026-02-13 21:34:37 -03:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2025-12-04 13:34:29 -08:00
2025-12-05 13:23:26 -05:00
2026-02-11 15:52:03 -08:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2025-12-01 18:56:56 -05:00
2026-02-15 04:57:56 -03:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00