feat: add Avian as an LLM provider#1997
Open
avianion wants to merge 1 commit intomckaywrigley:mainfrom
Open
Conversation
Add Avian (https://avian.io) as a new LLM provider with OpenAI-compatible API support. Includes 4 models: - deepseek/deepseek-v3.2 (164K context, $0.26/$0.38 per 1M tokens) - moonshotai/kimi-k2.5 (131K context, $0.45/$2.20 per 1M tokens) - z-ai/glm-5 (131K context, $0.30/$2.55 per 1M tokens) - minimax/minimax-m2.5 (1M context, $0.30/$1.10 per 1M tokens) Changes: - API route at /api/chat/avian using OpenAI SDK with custom base URL - Model list, types, chat setting limits, and icon component - API key support via profile settings, env vars, and Supabase migration - Full integration with existing provider pattern
Author
|
Friendly follow-up — this PR is still active and ready for review. Would appreciate a look when you get a chance! cc @mckaywrigley |
Author
|
Friendly follow-up — this PR is still active and ready for review. All feedback has been addressed. Would appreciate a look when you get a chance! cc @mckaywrigley |
Author
|
Hey @mckaywrigley — friendly follow-up on this PR. Avian is an OpenAI-compatible inference provider that's already live and powering apps like ISEKAI ZERO. This is a lightweight integration (standard OpenAI-compatible endpoint) and we're happy to address any feedback or make adjustments. Would love to get this merged if you have a moment to review. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Avian as a new LLM provider. Avian exposes an OpenAI-compatible API (
https://api.avian.io/v1) and offers competitively priced frontier models.Models added
deepseek/deepseek-v3.2moonshotai/kimi-k2.5z-ai/glm-5minimax/minimax-m2.5Changes
app/api/chat/avian/route.ts): Uses the OpenAI SDK withbaseURL: "https://api.avian.io/v1", same pattern as the Groq providerlib/models/llm/avian-llm-list.ts): 4 models with pricing infotypes/):AvianLLMIDtype,"avian"added toModelProvider,AVIAN_API_KEYto env/key typescomponents/icons/avian-svg.tsx): SVG icon component for model selectorAVIAN_API_KEYenv var mapping for server-side configurationavian_api_keycolumn to profiles tableConfiguration
Users can configure Avian in two ways:
AVIAN_API_KEYenvironment variableTest plan
AVIAN_API_KEYenv var and verify Avian models appear in model selectoravian_api_keycolumn is createdcc @mckaywrigley