Skip to content

Commit c2703fc

Browse files
committed
Support Cerebras.ai
1 parent 329d25f commit c2703fc

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/test-cerebras.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test on Cerebras
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-22.04
11+
timeout-minutes: 5
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- run: node --version
16+
17+
- run: echo 'Which planet in our solar system is the largest?' | ./ask-llm.js | tee output.txt | grep -i jupiter
18+
timeout-minutes: 3
19+
env:
20+
LLM_API_BASE_URL: 'https://api.cerebras.ai/v1'
21+
LLM_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
22+
LLM_CHAT_MODEL: 'llama3.1-8b'
23+
24+
- run: cat output.txt

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export LLM_API_BASE_URL=http://127.0.0.1:10002/v1
7575
## Using Managed LLM Services
7676

7777
[![Test on AI21](https://github.com/ariya/ask-llm/actions/workflows/test-ai21.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-ai21.yml)
78+
[![Test on Cerebras](https://github.com/ariya/ask-llm/actions/workflows/test-cerebras.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-cerebras.yml)
7879
[![Test on DeepInfra](https://github.com/ariya/ask-llm/actions/workflows/test-deepinfra.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-deepinfra.yml)
7980
[![Test on DeepSeek](https://github.com/ariya/ask-llm/actions/workflows/test-deepseek.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-deepseek.yml)
8081
[![Test on Fireworks](https://github.com/ariya/ask-llm/actions/workflows/test-fireworks.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-fireworks.yml)
@@ -88,7 +89,7 @@ export LLM_API_BASE_URL=http://127.0.0.1:10002/v1
8889
[![Test on OpenRouter](https://github.com/ariya/ask-llm/actions/workflows/test-openrouter.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-openrouter.yml)
8990
[![Test on Together](https://github.com/ariya/ask-llm/actions/workflows/test-together.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-together.yml)
9091

91-
Supported LLM services include [AI21](https://studio.ai21.com), [Deep Infra](https://deepinfra.com), [DeepSeek](https://platform.deepseek.com/), [Fireworks](https://fireworks.ai), [Groq](https://groq.com), [Hyperbolic](https://www.hyperbolic.xyz), [Lepton](https://lepton.ai), [Mistral](https://console.mistral.ai), [Nebius](https://studio.nebius.ai), [Novita](https://novita.ai), [OpenAI](https://platform.openai.com), [OpenRouter](https://openrouter.ai), and [Together](https://www.together.ai).
92+
Supported LLM services include [AI21](https://studio.ai21.com), [Cerebras](https://cloud.cerebras.ai), [Deep Infra](https://deepinfra.com), [DeepSeek](https://platform.deepseek.com/), [Fireworks](https://fireworks.ai), [Groq](https://groq.com), [Hyperbolic](https://www.hyperbolic.xyz), [Lepton](https://lepton.ai), [Mistral](https://console.mistral.ai), [Nebius](https://studio.nebius.ai), [Novita](https://novita.ai), [OpenAI](https://platform.openai.com), [OpenRouter](https://openrouter.ai), and [Together](https://www.together.ai).
9293

9394
For configuration specifics, refer to the relevant section. The quality of answers can vary based on the model's performance.
9495

@@ -99,6 +100,13 @@ export LLM_API_KEY="yourownapikey"
99100
export LLM_CHAT_MODEL=jamba-1.5-mini
100101
```
101102

103+
* [Cerebras](https://cloud.cerebras.ai)
104+
```bash
105+
export LLM_API_BASE_URL=https://api.cerebras.ai/v1
106+
export LLM_API_KEY="yourownapikey"
107+
export LLM_CHAT_MODEL="llama3.1-8b"
108+
```
109+
102110
* [Deep Infra](https://deepinfra.com)
103111
```bash
104112
export LLM_API_BASE_URL=https://api.deepinfra.com/v1/openai

0 commit comments

Comments
 (0)