feat(providers): add Groq as optional provider#94
Conversation
Install via `pip install dataframeit[groq]`. Works with `provider='groq'` and Groq's production Llama/GPT-OSS models plus agentic `groq/compound`. Default provider/model is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 48 minutes and 11 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis pull request adds optional Groq LLM provider support to the project. Changes include documentation for both English and Portuguese versions, updated dependency configuration for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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.
🧹 Nitpick comments (2)
docs/guides/providers.md (1)
12-12: Nit: tabela-resumo não listagroq/compound.A seção "Modelos Recomendados" (Linha 162) inclui
groq/compoundcomo modelo de produção, mas a tabela-resumo em Linha 12 não o menciona. Para consistência, considere adicioná-lo (ou uma nota de "...e outros").📝 Proposed change
-| Groq | `groq` | llama-3.3-70b-versatile, llama-3.1-8b-instant, openai/gpt-oss-120b, openai/gpt-oss-20b | +| Groq | `groq` | llama-3.3-70b-versatile, llama-3.1-8b-instant, openai/gpt-oss-120b, openai/gpt-oss-20b, groq/compound |🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/guides/providers.md` at line 12, The summary table row for "Groq | `groq`" is missing the `groq/compound` entry referenced later in the "Modelos Recomendados" section; update that table cell to include `groq/compound` (or append a trailing note like "…e outros") so the table and the "Modelos Recomendados" list stay consistent—locate the table row containing the text "Groq | `groq`" and add `groq/compound` to the comma-separated model list.CHANGELOG.md (1)
10-12: Add PR reference to the Groq entry.Other entries in this changelog (e.g.,
#77,#64) cite the associated issue/PR, and the coding guidelines require including issue/PR references. Please append(#94)to this entry.📝 Proposed change
-- **Suporte opcional a Groq**: novo provider disponível via `pip install dataframeit[groq]`. Use com `provider='groq'` e modelos como `llama-3.3-70b-versatile` ou `llama-3.1-8b-instant`. Requer `GROQ_API_KEY`. +- **Suporte opcional a Groq** (`#94`): novo provider disponível via `pip install dataframeit[groq]`. Use com `provider='groq'` e modelos como `llama-3.3-70b-versatile` ou `llama-3.1-8b-instant`. Requer `GROQ_API_KEY`.As per coding guidelines: "Always update
CHANGELOG.md... include issue/PR references".🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CHANGELOG.md` around lines 10 - 12, Update the "Suporte opcional a Groq" changelog bullet by appending the PR reference "(`#94`)" to the end of that entry; locate the bullet containing the text "**Suporte opcional a Groq**" and modify its line so the sentence ends with "Requer `GROQ_API_KEY`. (`#94`)".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@CHANGELOG.md`:
- Around line 10-12: Update the "Suporte opcional a Groq" changelog bullet by
appending the PR reference "(`#94`)" to the end of that entry; locate the bullet
containing the text "**Suporte opcional a Groq**" and modify its line so the
sentence ends with "Requer `GROQ_API_KEY`. (`#94`)".
In `@docs/guides/providers.md`:
- Line 12: The summary table row for "Groq | `groq`" is missing the
`groq/compound` entry referenced later in the "Modelos Recomendados" section;
update that table cell to include `groq/compound` (or append a trailing note
like "…e outros") so the table and the "Modelos Recomendados" list stay
consistent—locate the table row containing the text "Groq | `groq`" and add
`groq/compound` to the comma-separated model list.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d43abd51-b31e-47de-a026-883764ad3193
📒 Files selected for processing (4)
CHANGELOG.mddocs/en/guides/providers.mddocs/guides/providers.mdpyproject.toml
Summary
groqcomo extra opcional empyproject.toml(pip install dataframeit[groq]) e incluilangchain-groq>=0.2.0no extraall.docs/guides/providers.mdedocs/en/guides/providers.mdcom os modelos atualmente disponíveis no Groq (produção:llama-3.3-70b-versatile,llama-3.1-8b-instant,openai/gpt-oss-120b,openai/gpt-oss-20b,groq/compound; preview:meta-llama/llama-4-scout-17b-16e-instruct,qwen/qwen3-32b).CHANGELOG.mdsob[Unreleased].Não altera o default (
provider='google_genai'/model='gemini-3-flash-preview');langchain-groqcontinua fora das dependências obrigatórias.Substitui #86 (fechado), que tentava tornar Groq o default e embarcava
langchain-groqcomo dependência obrigatória.Test plan
uv sync --extra groqinstalalangchain-groqegroq.uv run pytestpassa (247 passed, 5 skipped).from langchain_groq import ChatGroq+validate_provider_dependencies("groq")funcionam.provider='groq'eGROQ_API_KEYválida.🤖 Generated with Claude Code
Summary by CodeRabbit
pip install dataframeit[groq], configure theGROQ_API_KEYenvironment variable, and specifyprovider='groq'in calls. Documentation includes setup instructions, usage examples, and recommended model listings for both production and preview tiers.