Skip to content

Commit

Permalink
Test on Novita
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed May 12, 2024
1 parent a6d92fd commit e0961f5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-novita.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test on Novita

on:
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18'

- run: echo 'Which planet in our solar system is the largest?' | ./ask-llm.js | tee output.txt | grep -i jupiter
timeout-minutes: 3
env:
LLM_API_BASE_URL: 'https://api.novita.ai/v3/openai'
LLM_API_KEY: ${{ secrets.NOVITA_API_KEY }}
LLM_CHAT_MODEL: 'meta-llama/llama-3-8b-instruct'

- run: cat output.txt
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ export LLM_API_BASE_URL=https://mixtral-8x7b.lepton.run/api/v1/
export LLM_API_KEY="yourownapikey"
```

* [Novita](https://novita.ai)
```bash
export LLM_API_BASE_URL='https://api.novita.ai/v3/openai'
export LLM_API_KEY="yourownapikey"
export LLM_CHAT_MODE="meta-llama/llama-3-8b-instruct"
```

* [OpenRouter](https://openrouter.ai/)
```bash
export LLM_API_BASE_URL=https://openrouter.ai/api/v1
Expand Down

0 comments on commit e0961f5

Please sign in to comment.