From 8ba8423ccdbfe43c84d8a58523c4ba828dda8817 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sun, 12 May 2024 11:51:34 -0700 Subject: [PATCH] Test with Groq --- .github/workflows/test-groq.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test-groq.yml diff --git a/.github/workflows/test-groq.yml b/.github/workflows/test-groq.yml new file mode 100644 index 0000000..f2d07c7 --- /dev/null +++ b/.github/workflows/test-groq.yml @@ -0,0 +1,25 @@ +name: Test on Groq + +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.groq.com/openai/v1' + LLM_API_KEY: ${{ secrets.GROQ_API_KEY }} + LLM_CHAT_MODEL: 'llama3-8b-8192' + + - run: cat output.txt