diff --git a/.github/workflows/test-avian.yml b/.github/workflows/test-avian.yml new file mode 100644 index 0000000..6c9cb92 --- /dev/null +++ b/.github/workflows/test-avian.yml @@ -0,0 +1,24 @@ +name: Test on Avian + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-22.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + + - run: node --version + + - 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.avian.io/v1' + LLM_API_KEY: ${{ secrets.AVIAN_API_KEY }} + LLM_CHAT_MODEL: 'Meta-Llama-3.1-8B-Instruct' + + - run: cat output.txt diff --git a/README.md b/README.md index d9610c9..80ae933 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ export LLM_API_BASE_URL=http://127.0.0.1:10002/v1 ## Using Managed LLM Services [![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) +[![Test on Avian](https://github.com/ariya/ask-llm/actions/workflows/test-avian.yml/badge.svg)](https://github.com/ariya/ask-llm/actions/workflows/test-avian.yml) [![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) [![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) [![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) @@ -91,7 +92,7 @@ export LLM_API_BASE_URL=http://127.0.0.1:10002/v1 [![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) [![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) -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). +Supported LLM services include [AI21](https://studio.ai21.com), [Avian][https://avian.io], [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). For configuration specifics, refer to the relevant section. The quality of answers can vary based on the model's performance. @@ -102,6 +103,13 @@ export LLM_API_KEY="yourownapikey" export LLM_CHAT_MODEL=jamba-1.5-mini ``` +* [Avian][https://avian.io] +```bash +export LLM_API_BASE_URL=https://api.avian.io/v1 +export LLM_API_KEY="yourownapikey" +export LLM_CHAT_MODEL=Meta-Llama-3.1-8B-Instruct +``` + * [Cerebras](https://cloud.cerebras.ai) ```bash export LLM_API_BASE_URL=https://api.cerebras.ai/v1