Skip to content

fix: raise value error on no file support#4640

Open
greysonlalonde wants to merge 3 commits intomainfrom
gl/fix/raise-on-no-file-support
Open

fix: raise value error on no file support#4640
greysonlalonde wants to merge 3 commits intomainfrom
gl/fix/raise-on-no-file-support

Conversation

@greysonlalonde
Copy link
Contributor

@greysonlalonde greysonlalonde commented Feb 27, 2026

Note

Medium Risk
Introduces a new ValueError for calls that include files on models without multimodal support, which can break previously-silent workflows. Model capability detection is also expanded (Claude 4 variants), so behavior may change for some model strings.

Overview
File attachments now fail fast on unsupported models. When crewai_files is installed, _process_message_files/_aprocess_message_files (in both LLM and BaseLLM) now raise a clear ValueError if any message includes files but the selected model doesn’t support multimodal input, instead of silently ignoring file inputs.

Expanded multimodal model matching. Multimodal detection was updated to recognize additional Claude 4 model name variants in the LiteLLM path, the Anthropic native provider, and Bedrock model prefixes.

Written by Cursor Bugbot for commit 0a6f237. This will update automatically on new commits. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant