diff --git a/lib/crewai/src/crewai/crew.py b/lib/crewai/src/crewai/crew.py index e6f11552b..5a00e1e18 100644 --- a/lib/crewai/src/crewai/crew.py +++ b/lib/crewai/src/crewai/crew.py @@ -1340,7 +1340,12 @@ class Crew(FlowTrackable, BaseModel): # Text files are always auto-injected (inlined as text), even # when the model does not support multimodal input. - text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml") + text_prefixes = ( + "text/", + "application/json", + "application/xml", + "application/x-yaml", + ) def is_auto_injected(content_type: str) -> bool: if any(content_type.startswith(t) for t in text_prefixes): diff --git a/lib/crewai/src/crewai/task.py b/lib/crewai/src/crewai/task.py index 8c359b469..a13982e2e 100644 --- a/lib/crewai/src/crewai/task.py +++ b/lib/crewai/src/crewai/task.py @@ -826,7 +826,12 @@ class Task(BaseModel): # Text files are always auto-injected (inlined as text), even # when the model does not support multimodal input. - text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml") + text_prefixes = ( + "text/", + "application/json", + "application/xml", + "application/x-yaml", + ) def is_auto_injected(content_type: str) -> bool: if any(content_type.startswith(t) for t in text_prefixes):