feat: add Avian as a new API provider#6420
Conversation
|
Hi @chrarnoldus @kevinvandijk — tagging you as you've been actively reviewing and merging provider-related PRs. Would appreciate a review when you have a chance. Thanks! |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by gpt-5.5-20260423 · 808,519 tokens |
|
Thanks for the review! The 1,000,000 output token limit for MiniMax M2.5 is correct — MiniMax M2.5 supports up to 1M tokens for both input context and output. This is a distinguishing feature of the model (one of the largest output windows available). No change needed here. |
|
Friendly follow-up — this PR is still active and ready for review. Would appreciate a look when you get a chance! cc @marius-kilocode @iscekic |
|
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 @marius-kilocode @iscekic |
|
Hey @thdxr @adamdotdevin — 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! |
|
@avianion could you resolve the merge conflicts? |
|
Resolved merge conflicts — merged latest upstream main. The conflict was in |
|
@chrarnoldus could you take another look? |
|
Resolved merge conflicts with latest upstream. |
5685859 to
0bb8015
Compare
Summary
Adds Avian as a new OpenAI-compatible API provider with four models:
Changes
packages/opencode/src/provider/models.ts— Add Avian provider definition with model metadata (context limits, capabilities, pricing)packages/opencode/src/provider/provider.ts— Add Avian provider loader (API key detection via env var, auth store, or config)Follows the same pattern as other OpenAI-compatible providers (uses
@ai-sdk/openai-compatible). Only 2 files changed, 87 lines added.Test plan
AVIAN_API_KEYenv var and verify Avian appears in provider list🤖 Generated with Claude Code