You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Pinecone](https://pinecone.io) - Knowledge Base (optional)
@@ -571,6 +572,40 @@ config = {
571
572
- ✅ Structured outputs (via Instructor TOOLS_STRICT and JSON modes)
572
573
- ✅ Native JSON mode
573
574
575
+
### Groq
576
+
577
+
Solana Agent supports using Groq as an alternative to OpenAI. When Groq is configured, it will be used for all LLM operations except embeddings, TTS, and STT (which still require OpenAI).
578
+
579
+
**Note:** Grok configuration takes priority over Groq, and Groq takes priority over OpenAI. If multiple are present, the highest priority provider will be used.
580
+
581
+
```python
582
+
config = {
583
+
"groq": {
584
+
"api_key": "your-groq-api-key",
585
+
"base_url": "https://api.groq.com/openai/v1", # Optional, defaults to https://api.groq.com/openai/v1
586
+
"model": "openai/gpt-oss-120b"# Optional, defaults to openai/gpt-oss-120b
587
+
},
588
+
# You can still include OpenAI for embeddings, TTS, and STT
589
+
"openai": {
590
+
"api_key": "your-openai-api-key"
591
+
},
592
+
"agents": [
593
+
{
594
+
"name": "research_specialist",
595
+
"instructions": "You are an expert researcher.",
596
+
"specialization": "Research",
597
+
}
598
+
],
599
+
}
600
+
```
601
+
602
+
**Verified Capabilities:**
603
+
- ✅ Chat completions
604
+
- ✅ Streaming responses
605
+
- ✅ Function calling/Tool usage
606
+
- ✅ Structured outputs (via Instructor TOOLS_STRICT and JSON modes)
0 commit comments