fix(cli): update Groq model list to match current API availability#6315
fix(cli): update Groq model list to match current API availability#6315AHMEDDEV2004 wants to merge 1 commit into
Conversation
Remove deprecated models (llama-3.1-405b-reasoning, gemma-7b-it) and add current Groq models: llama-3.3-70b-versatile, llama-4-scout-17b, qwen3-32b. Verified against Groq /v1/models endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Summary: This PR updates a static CLI model list for Groq provider selection and does not change authentication, authorization, data handling, or external request behavior.
Risk: Low risk. No exploitable security vulnerabilities were identified because the change only modifies hardcoded model identifiers used by the CLI.
📝 WalkthroughWalkthroughThe ChangesGroq Model List Update
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/cli/src/crewai_cli/constants.py`:
- Around line 261-265: The Groq model list is duplicated and has drifted between
the CLI constants and the JSON crew creation flow, so update the stale Groq IDs
in create_json_crew.py to match MODELS["groq"] from constants.py, or refactor
the JSON crew path to source the list directly from MODELS["groq"]. Use the
existing symbols MODELS["groq"] and the Groq model selection logic in
create_json_crew.py to locate and align the shared model IDs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 855f1e75-4699-41a7-9759-ca1024451cea
📒 Files selected for processing (1)
lib/cli/src/crewai_cli/constants.py
| "groq/llama-3.3-70b-versatile", | ||
| "groq/llama-3.1-8b-instant", | ||
| "groq/llama-3.1-70b-versatile", | ||
| "groq/llama-3.1-405b-reasoning", | ||
| "groq/gemma2-9b-it", | ||
| "groq/gemma-7b-it", | ||
| "groq/meta-llama/llama-4-scout-17b-16e-instruct", | ||
| "groq/qwen/qwen3-32b", | ||
| "groq/allam-2-7b", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Keep Groq model IDs synchronized across CLI creation paths.
Line 261 updates MODELS["groq"], but lib/cli/src/crewai_cli/create_json_crew.py still has a separate stale Groq list (including removed IDs like llama-3.1-70b-versatile). This can let JSON crew flow select unavailable models. Please update that list in the same PR, or source it from MODELS["groq"] to prevent drift.
Suggested direction
-# create_json_crew.py (hardcoded groq list)
-"groq": [
- ("llama-3.3-70b-versatile", "Llama 3.3 70B"),
- ("llama-3.1-70b-versatile", "Llama 3.1 70B"),
- ...
-],
+# Prefer deriving from constants.MODELS["groq"] (single source of truth)🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@lib/cli/src/crewai_cli/constants.py` around lines 261 - 265, The Groq model
list is duplicated and has drifted between the CLI constants and the JSON crew
creation flow, so update the stale Groq IDs in create_json_crew.py to match
MODELS["groq"] from constants.py, or refactor the JSON crew path to source the
list directly from MODELS["groq"]. Use the existing symbols MODELS["groq"] and
the Groq model selection logic in create_json_crew.py to locate and align the
shared model IDs.
Summary
Updates the Groq model list in
crewai create crewCLI to reflect currently available models from the Groq API.Removed (deprecated/unavailable)
groq/llama-3.1-405b-reasoning— no longer available on Groqgroq/gemma-7b-it— deprecatedgroq/gemma2-9b-it— deprecatedAdded (currently available)
groq/llama-3.3-70b-versatile— current flagship modelgroq/meta-llama/llama-4-scout-17b-16e-instruct— newest Llama 4groq/qwen/qwen3-32b— popular reasoning modelgroq/allam-2-7b— lightweight modelVerification
Verified against the live Groq API (
GET /v1/models) on 2026-06-24.Test plan
constants.pysyntax validation passescrewai create crew→ select Groq → model list shows updated options🤖 Generated with Claude Code
Summary by CodeRabbit