#8135: Adding Groq as a model provider
docs
Cluster:
Model Provider Integrations
Added groq as a model provider.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds Groq to the provider usage subsystem: it introduces a new `groq` `UsageProviderId`, adds a label, includes Groq in the default usage provider list, resolves a Groq API key from env/config/auth profiles, and wires a new `fetchGroqUsage` implementation into the usage summary loader. It also adds end-user docs linking Groq under the provider catalog.
Main concern is that the usage fetch currently relies on a hard-coded `/openai/v1/usage` endpoint and treats any failure/parse issue as “no usage”, which may silently mislead users rather than indicating the feature is unsupported or unavailable.
<h3>Confidence Score: 3/5</h3>
- This PR is mostly safe to merge, but Groq usage reporting may be misleading due to an unverified endpoint and silent fallback behavior.
- Changes are localized and type-safe (new provider ID, labels, auth resolution, and a fetch stub). The main risk is functional: `fetchGroqUsage` will likely return empty usage in many real-world cases, making the UI appear as if Groq has no usage rather than indicating unsupported/unavailable usage tracking.
- src/infra/provider-usage.fetch.groq.ts, docs/providers/groq.md
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#20965: feat: Add comprehensive model configuration and discovery for various…
by rodeok · 2026-02-19
85.6%
#9109: Models: add Orq provider
by Baukebrenninkmeijer · 2026-02-04
78.1%
#13295: feat: add Eternal AI provider integration
by peterparkernho · 2026-02-10
76.3%
#7051: Add io-intelligence model inference provider
by rajagurunath · 2026-02-02
74.2%
#12059: feat(agents): Add Azure AI Foundry credential support
by lisanyambere · 2026-02-08
73.2%
#9822: fix: allow local/custom model providers for sub-agent inference
by stammtobias91 · 2026-02-05
73.2%
#11882: fix: accept openai-codex/gpt-5.3-codex model refs
by jackberger03 · 2026-02-08
73.2%
#21210: feat: add Groq as a cloud provider (#20691)
by theognis1002 · 2026-02-19
72.8%
#14393: feat: add standalone DeepSeek provider support
by osoulmate · 2026-02-12
72.8%
#7272: Models: add SiliconFlow provider
by qychen2001 · 2026-02-02
72.7%