File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Switch languages
2+
3+ on : [workflow_dispatch, push, pull_request]
4+
5+ jobs :
6+
7+ lang-switch :
8+ runs-on : ubuntu-22.04
9+ timeout-minutes : 5
10+ strategy :
11+ max-parallel : 3
12+ fail-fast : false
13+ matrix :
14+ model :
15+ - google/gemma-3-4b-it # $0.0200/$0.0400 [ 128K]
16+ - qwen/qwen3-30b-a3b # $0.0800/$0.2900 [ 40K]
17+ - meta-llama/llama-4-scout # $0.0800/$0.3000 [ 320K]
18+ - openai/gpt-4.1-nano # $0.1000/$0.4000 [1000K]
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - run : ./chat-llm.js tests/lang-switch.txt
24+ env :
25+ LLM_API_BASE_URL : https://openrouter.ai/api/v1
26+ LLM_API_KEY : ${{ secrets.LLM_API_KEY }}
27+ LLM_CHAT_MODEL : ${{ matrix.model }}
Original file line number Diff line number Diff line change 1+ Story: Switch between different languages
2+
3+ User: Which planet in our solar system is the biggest?
4+ Assistant: /Jupiter/ is the largest planet in our solar system.
5+
6+ User: ¿Y el más caliente?
7+ Assistant: /Venus/ es el planeta más caliente de nuestro sistema solar.
8+
9+ User: und derjenige, der den Spitznamen "Der Rote Planet" hat?
10+ Assistant: /Mars/, aufgrund seines rötlichen Aussehens, das durch Eisenoxid auf seiner Oberfläche verursacht wird.
11+
12+ User: et laquelle est connue pour son système d'anneaux le plus complexe?
13+ Assistant: Ce doit être /Saturne/ !
You can’t perform that action at this time.
0 commit comments