Open
Conversation
Add Avian (api.avian.io) as a new OpenAI-compatible inference provider with four models: DeepSeek V3.2, Kimi K2.5, GLM-5, and MiniMax M2.5. Changes: - New provider module (web/src/llm-api/avian.ts) with streaming and non-streaming support, per-model pricing, usage tracking, and billing - Route avian/* models through the Avian provider in chat completions API - Add AVIAN_API_KEY to server env schema - Register avian models in model-config constants and agent type definitions
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
https://api.avian.io/v1)web/src/llm-api/avian.ts) following the same pattern as Fireworks/SiliconFlow, with streaming + non-streaming support, per-model pricing, usage/billing tracking, TTFT measurement, and error handlingavian/*model IDs through the Avian provider in the chat completions APIAVIAN_API_KEYto server env schema (optional, like other third-party provider keys)model-config.tsconstants,providerModelNames,providerDomains, and all three copies of theModelNametypeModels available via Avian
avian/deepseek-v3.2avian/kimi-k2.5avian/glm-5avian/minimax-m2.5Test plan
isAvianModel()correctly matches onlyavian/*model IDsavian/