groq://¶
Groq — extremely fast LPU-hosted inference for open-source models (Llama 3.3, Mixtral, Whisper, Gemma) via an OpenAI-compatible API.
Built on pkg/component/llmutil/ — the same chat/embeddings shape as
openai://. This page covers only the Groq-specific
defaults.
URI shape¶
Parameters¶
| Param | Type | Default | Producer/Consumer/Both | Description |
|---|---|---|---|---|
| path | enum | chat |
Producer | chat (embeddings not currently offered by Groq). |
model |
string | llama-3.3-70b-versatile |
Producer | Groq model id. Common: llama-3.3-70b-versatile, llama-3.1-8b-instant, mixtral-8x7b-32768, gemma2-9b-it. |
apiKey |
string | (from constructor) | Producer | Groq API key. Sent as Authorization: Bearer <key>. |
baseURL |
string | https://api.groq.com/openai/v1 |
Producer | Override for proxies. |
temperature |
float | 0.7 |
Producer | Sampling temperature. |
maxTokens |
int | 4096 |
Producer | Output cap. |
Producer-only. Default timeout 120 s.
Headers¶
Same as openai:// but under groq.* (groq.model, groq.id,
groq.finishReason, groq.usage.*). Input header systemPrompt
works the same way.
Examples¶
Smaller, faster model for routing decisions:
Behavior notes¶
- Groq is very fast — sub-second first-token latency is common — so the 120 s timeout is generally overkill but harmless.
- The Groq model catalogue moves often; check https://console.groq.com/docs/models for what's currently available. Older Llama 3.x ids get retired.
- All other behaviour matches
openai://.
Source¶
pkg/component/groq/groq.go— eight-line wrapper aroundllmutil.NewComponent.pkg/component/llmutil/llmutil.go.