Skip to content

feat: Add Groq adapter documentation#349

Open
dhamivibez wants to merge 3 commits intoTanStack:mainfrom
dhamivibez:docs/groq
Open

feat: Add Groq adapter documentation#349
dhamivibez wants to merge 3 commits intoTanStack:mainfrom
dhamivibez:docs/groq

Conversation

@dhamivibez
Copy link
Contributor

@dhamivibez dhamivibez commented Mar 7, 2026

Add a new markdown file detailing the Groq adapter, including installation, usage, configuration, model options, TTS capabilities, and API references.

🎯 Changes

Added a new markdown file documenting the Groq TTS adapter, including installation, usage, configuration, and API reference. Provides a quick guide for developers to integrate and use the adapter.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Documentation
    • Added comprehensive Groq adapter docs covering installation, configuration, usage examples (chat, tools), model options including reasoning, and Text-to-Speech
    • Included API reference, environment variable setup, example snippets for chat and TTS, supported models, and TTS voices/formats
    • Noted limitations (no image generation) and added a Next Steps/navigation entry
    • Added Groq to the adapters listing in the docs navigation/configuration

Add a new markdown file detailing the Groq adapter, including
installation, usage, configuration, model options, TTS capabilities, and
API references.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e5929f10-0b60-4215-a8e5-f8db8c8f60f7

📥 Commits

Reviewing files that changed from the base of the PR and between 511b0e0 and 69d70d5.

📒 Files selected for processing (1)
  • docs/adapters/groq.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/adapters/groq.md

📝 Walkthrough

Walkthrough

Adds new Groq adapter documentation (docs/adapters/groq.md) and a navigation entry for Groq in docs/config.json; documents installation, usage, configuration, API references, supported models, and TTS details.

Changes

Cohort / File(s) Summary
Groq Adapter Documentation
docs/adapters/groq.md
New comprehensive documentation introducing the Groq adapter: installation, usage examples (chat, tools, API key/no-key flows), configuration options, environment variable (GROQ_API_KEY), API references (groqText, createGroqText, groqSpeech, createGroqSpeech), supported models, and TTS voices/formats.
Documentation Configuration
docs/config.json
Added a navigation entry { "label": "Groq", "to": "adapters/groq" } under Adapters (inserted between Ollama and Grok).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰
I nibbled through a docs-new grove,
Groq blooms where the changelog rove,
Voices sing and keys align,
Examples hop in tidy line,
A tiny rabbit cheers—so fine! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: Add Groq adapter documentation' clearly and accurately describes the main change: adding a new Groq adapter documentation file.
Description check ✅ Passed The description includes all required template sections (Changes, Checklist, Release Impact) with appropriate details about the documentation addition and properly checked items.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/adapters/groq.md`:
- Around line 120-126: The docs show modelOptions.reasoning.effort which doesn't
match the actual API; update the example to use the top-level modelOptions
property reasoning_effort and remove the invalid "minimal" value, i.e., replace
the nested reasoning object with reasoning_effort and list allowed values as
'none' | 'default' | 'low' | 'medium' | 'high' to match the type defined in
text-provider-options.ts (reference modelOptions and reasoning_effort).
- Around line 197-203: Update the "Supported TTS Formats" section to clarify
that although the type includes `mp3`, `flac`, `ogg`, and `mulaw` for future
compatibility, Groq's Orpheus TTS models currently only support `wav`; change
the list or add a parenthetical/inline sentence under the "Supported TTS
Formats" heading stating that only `wav` is supported by Orpheus today and the
other formats may not work with current Orpheus models (they are present for
future compatibility/reference).
- Around line 93-97: The example calls chat(adapter: groqText(...), messages,
tools...) but the messages variable is undefined; add a messages definition
before the chat call (e.g., a messages array containing message objects with
roles and content such as system/user/assistant) so the snippet is
self-contained and demonstrates how to pass conversation history into chat and
groqText; update the example near the chat(...) invocation to declare messages
and then call chat with that messages variable.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ce6a05ac-9188-4071-83e0-de8f2b091456

📥 Commits

Reviewing files that changed from the base of the PR and between 1e0f993 and 84f0345.

📒 Files selected for processing (2)
  • docs/adapters/groq.md
  • docs/config.json

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/adapters/groq.md`:
- Around line 217-225: Update the docs for the env-based helpers to make the
signature consistent: either add a short bullet describing the optional config
parameter or remove the `config?` from the signatures. Specifically, in
docs/adapters/groq.md update the `groqText(model, config?)` and the other
env-helper heading around lines 239-247 to reflect the change—if keeping
`config?`, add a `- config (optional) - <short description of allowed options>`
entry explaining what the env-based helper accepts; if removing it, edit the
headings to `groqText(model)` and `groq...` variants so the parameter list only
shows `model`. Ensure the same approach is applied to both occurrences so the
API reference is consistent.
- Around line 107-115: The example in docs/adapters/groq.md uses the wrong
option name and an undefined variable; update the chat(...) example to use the
API's GroqTextProviderOptions by replacing max_tokens with max_completion_tokens
and make the snippet self-contained by defining a messages array (e.g., const
messages = [{ role: "user", content: "..." }]) before calling chat; ensure the
chat call references groqText("llama-3.3-70b-versatile"), messages, and
modelOptions with temperature, max_completion_tokens, and top_p so it matches
the actual API.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6eb307aa-5593-409e-a64a-b27cf36ff765

📥 Commits

Reviewing files that changed from the base of the PR and between 84f0345 and 511b0e0.

📒 Files selected for processing (1)
  • docs/adapters/groq.md

Update documentation for the Groq adapter to reflect correct options and
add a note about `baseURL` configuration.
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