Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shaky-donuts-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-voltagent-app": minor
---

Add Cerebras AI provider support to create-voltagent-app
1 change: 1 addition & 0 deletions packages/create-voltagent-app/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const runCLI = async (): Promise<void> => {
{ name: `Groq (${AI_PROVIDER_CONFIG.groq.modelName})`, value: "groq" },
{ name: `Mistral (${AI_PROVIDER_CONFIG.mistral.modelName})`, value: "mistral" },
{ name: `Ollama (${AI_PROVIDER_CONFIG.ollama.modelName} - Local)`, value: "ollama" },
{ name: `Cerebras (${AI_PROVIDER_CONFIG.cerebras.modelName})`, value: "cerebras" },
],
default: "openai",
},
Expand Down
10 changes: 10 additions & 0 deletions packages/create-voltagent-app/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@ export const AI_PROVIDER_CONFIG = {
'\nconst ollama = createOllama({\n baseURL: process.env.OLLAMA_HOST || "http://localhost:11434",\n});',
apiKeyUrl: "https://ollama.com/download",
},
cerebras: {
name: "Cerebras",
envVar: "CEREBRAS_API_KEY",
package: "@ai-sdk/cerebras",
packageVersion: "^2.0.14",
model: 'cerebras("gpt-oss-120b")',
modelName: "GPT-OSS-120B",
import: 'import { cerebras } from "@ai-sdk/cerebras";',
apiKeyUrl: "https://cloud.cerebras.ai/?redirect=/platform",
},
} as const;
3 changes: 3 additions & 0 deletions website/docs/getting-started/providers-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ GOOGLE_GENERATIVE_AI_API_KEY=your-key
# Groq
GROQ_API_KEY=your-key

# Cerebras
CEREBRAS_API_KEY=your-key

# And so on...
```

Expand Down
3 changes: 3 additions & 0 deletions website/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ GROQ_API_KEY=your-api-key-here
# For Mistral
MISTRAL_API_KEY=your-api-key-here

# Cerebras
CEREBRAS_API_KEY=your-api-key-here

# For Ollama (no API key needed, runs locally)
# Make sure Ollama is installed and running
```
Expand Down