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)
@@ -607,6 +608,40 @@ config = {
607
608
- ✅ Structured outputs (via Instructor TOOLS_STRICT and JSON modes)
608
609
- ✅ Native JSON mode
609
610
611
+
### Cerebras
612
+
613
+
Solana Agent supports using Cerebras as an alternative to OpenAI. When Cerebras is configured, it will be used for all LLM operations except embeddings, TTS, and STT (which still require OpenAI).
614
+
615
+
**Note:** Grok takes priority over Groq, Groq takes priority over Cerebras, and Cerebras takes priority over OpenAI. If multiple are present, the highest priority provider will be used.
616
+
617
+
```python
618
+
config = {
619
+
"cerebras": {
620
+
"api_key": "your-cerebras-api-key",
621
+
"base_url": "https://api.cerebras.ai/v1", # Optional, defaults to https://api.cerebras.ai/v1
622
+
"model": "gpt-oss-120b"# Optional, defaults to gpt-oss-120b
623
+
},
624
+
# You can still include OpenAI for embeddings, TTS, and STT
625
+
"openai": {
626
+
"api_key": "your-openai-api-key"
627
+
},
628
+
"agents": [
629
+
{
630
+
"name": "research_specialist",
631
+
"instructions": "You are an expert researcher.",
632
+
"specialization": "Research",
633
+
}
634
+
],
635
+
}
636
+
```
637
+
638
+
**Verified Capabilities:**
639
+
- ✅ Chat completions
640
+
- ✅ Streaming responses
641
+
- ✅ Function calling/Tool usage
642
+
- ✅ Structured outputs (via Instructor TOOLS_STRICT and JSON modes)
0 commit comments