feat(cli): update model options to include latest models #4318
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the hardcoded model lists in the CLI's
crewai create crewcommand to include the latest models from major providers. This addresses issue #4317 where users reported seeing outdated models (like GPT-4 and Claude 3 Sonnet) when creating new projects.Changes:
gpt-4-turbo,o1,o3,o3-mini,o4-mini; reordered to putgpt-4ofirstclaude-sonnet-4-5,claude-3-7-sonnet,claude-3-5-sonnet-20241022,claude-3-5-haiku-20241022llama3.2,llama3.3,deepseek-r1Added tests to verify latest models are included for major providers.
Review & Testing Checklist for Human
crewai create crew test-projectand selecting each provider to confirm models work.gpt-4,claude-3-sonnet-20240229,groq/llama-3.1-405b-reasoning). Verify this is acceptable or if they should be kept for backward compatibility.claude-sonnet-4-5-20250514andclaude-3-7-sonnet-20250219should be verified against Anthropic's current API documentation.Recommended test plan:
crewai create crew test-projectNotes
Fixes #4317
Link to Devin run: https://app.devin.ai/sessions/f81e36ee11b142e0aceb914dfa203d5c
Requested by: João