Skip to content

fix(cli): update Groq model list to match current API availability#6315

Open
AHMEDDEV2004 wants to merge 1 commit into
crewAIInc:mainfrom
AHMEDDEV2004:fix/update-groq-model-list
Open

fix(cli): update Groq model list to match current API availability#6315
AHMEDDEV2004 wants to merge 1 commit into
crewAIInc:mainfrom
AHMEDDEV2004:fix/update-groq-model-list

Conversation

@AHMEDDEV2004

@AHMEDDEV2004 AHMEDDEV2004 commented Jun 24, 2026

Copy link
Copy Markdown

Summary

Updates the Groq model list in crewai create crew CLI to reflect currently available models from the Groq API.

Removed (deprecated/unavailable)

  • groq/llama-3.1-405b-reasoning — no longer available on Groq
  • groq/gemma-7b-it — deprecated
  • groq/gemma2-9b-it — deprecated

Added (currently available)

  • groq/llama-3.3-70b-versatile — current flagship model
  • groq/meta-llama/llama-4-scout-17b-16e-instruct — newest Llama 4
  • groq/qwen/qwen3-32b — popular reasoning model
  • groq/allam-2-7b — lightweight model

Verification

Verified against the live Groq API (GET /v1/models) on 2026-06-24.

Test plan

  • Models verified against Groq API response
  • constants.py syntax validation passes
  • crewai create crew → select Groq → model list shows updated options

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Updated the available Groq model options in the CLI with newer model identifiers.
    • Added support for additional Groq choices, including several latest Llama, Qwen, and Allam variants.
  • Bug Fixes
    • Removed outdated model options from the Groq list to keep the available selections current and accurate.

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>

@corridor-security corridor-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The MODELS["groq"] list in lib/cli/src/crewai_cli/constants.py is updated: four model identifiers (llama-3.1-70b-versatile, llama-3.1-405b-reasoning, gemma2-9b-it, gemma-7b-it) are removed and four new ones (llama-3.3-70b-versatile, meta-llama/llama-4-scout-17b-16e-instruct, qwen/qwen3-32b, allam-2-7b) are added. llama-3.1-8b-instant is retained.

Changes

Groq Model List Update

Layer / File(s) Summary
Groq model identifier replacements
lib/cli/src/crewai_cli/constants.py
Removes groq/llama-3.1-70b-versatile, groq/llama-3.1-405b-reasoning, groq/gemma2-9b-it, and groq/gemma-7b-it from MODELS["groq"]; adds groq/llama-3.3-70b-versatile, groq/meta-llama/llama-4-scout-17b-16e-instruct, groq/qwen/qwen3-32b, and groq/allam-2-7b.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: refreshing the Groq CLI model list to match API availability.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between a046e6a and d8cebc3.

📒 Files selected for processing (1)
  • lib/cli/src/crewai_cli/constants.py

Comment on lines +261 to +265
"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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

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.

2 participants