-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat: add Avian as a new LLM provider #10871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
avianion
wants to merge
8
commits into
continuedev:main
Choose a base branch
from
avianion:feat/add-avian-provider
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c65e482
feat: add Avian as a new LLM provider
avianion f3345db
fix: add trailing slash to Avian base URL for consistency
avianion eb83948
style: fix prettier formatting for CI check
avianion 2032c3d
Merge upstream main: resolve conflict in autodetect.ts (keep both avi…
avianion d7f2f57
Address review feedback: add provider capabilities + fix logo
avianion 8400470
Merge branch 'main' into feat/add-avian-provider
RomneyDa 2ef98a3
Merge branch 'main' into feat/add-avian-provider
RomneyDa a2f4b86
fix: add avian to provider schemas and fix LLM apiBase trailing slash
avianion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { LLMOptions } from "../../index.js"; | ||
|
|
||
| import OpenAI from "./OpenAI.js"; | ||
|
|
||
| class Avian extends OpenAI { | ||
| static providerName = "avian"; | ||
| static defaultOptions: Partial<LLMOptions> = { | ||
| apiBase: "https://api.avian.io/v1", | ||
| useLegacyCompletionsEndpoint: false, | ||
| }; | ||
| } | ||
|
|
||
| export default Avian; |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| title: "Avian" | ||
| description: "Configure Avian's AI models with Continue, including DeepSeek V3.2, Kimi K2.5, GLM-5, and MiniMax M2.5" | ||
| --- | ||
|
|
||
| [Avian](https://avian.io/) provides an OpenAI-compatible API with access to leading AI models at competitive pricing. | ||
|
|
||
| <Info>Get an API key from the [Avian dashboard](https://avian.io)</Info> | ||
|
|
||
| ## Configuration | ||
|
|
||
| <Tabs> | ||
| <Tab title="YAML"> | ||
| ```yaml title="config.yaml" | ||
| name: My Config | ||
| version: 0.0.1 | ||
| schema: v1 | ||
|
|
||
| models: | ||
| - name: DeepSeek V3.2 | ||
| provider: avian | ||
| model: deepseek/deepseek-v3.2 | ||
| apiKey: <YOUR_AVIAN_API_KEY> | ||
| ``` | ||
| </Tab> | ||
| <Tab title="JSON (Deprecated)"> | ||
| ```json title="config.json" | ||
| { | ||
| "models": [ | ||
| { | ||
| "title": "DeepSeek V3.2", | ||
| "provider": "avian", | ||
| "model": "deepseek/deepseek-v3.2", | ||
| "apiKey": "<YOUR_AVIAN_API_KEY>" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
| </Tab> | ||
| </Tabs> | ||
|
|
||
| ## Available Models | ||
|
|
||
| | Model | Context Length | Input Price | Output Price | | ||
| | ----- | ------------- | ----------- | ------------ | | ||
| | `deepseek/deepseek-v3.2` | 164K | $0.26/M | $0.38/M | | ||
| | `moonshotai/kimi-k2.5` | 131K | $0.45/M | $2.20/M | | ||
| | `z-ai/glm-5` | 131K | $0.30/M | $2.55/M | | ||
| | `minimax/minimax-m2.5` | 1M | $0.30/M | $1.10/M | | ||
|
|
||
| ## Configuration Options | ||
|
|
||
| | Option | Description | Default | | ||
| | --------- | -------------------- | ----------------------------- | | ||
| | `apiKey` | Avian API key | Required | | ||
| | `apiBase` | API base URL | `https://api.avian.io/v1` | | ||
| | `model` | Model name to use | - | | ||
|
|
||
| <Tip> | ||
| You can set the `AVIAN_API_KEY` environment variable instead of specifying the API key directly in the configuration file. | ||
| </Tip> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { ModelProvider } from "../types.js"; | ||
|
|
||
| export const Avian: ModelProvider = { | ||
| models: [ | ||
| { | ||
| model: "deepseek/deepseek-v3.2", | ||
| displayName: "DeepSeek V3.2", | ||
| contextLength: 164000, | ||
| recommendedFor: ["chat"], | ||
| regex: /deepseek\/deepseek-v3\.2/, | ||
| }, | ||
| { | ||
| model: "moonshotai/kimi-k2.5", | ||
| displayName: "Kimi K2.5", | ||
| contextLength: 131000, | ||
| recommendedFor: ["chat"], | ||
| regex: /moonshotai\/kimi-k2\.5/, | ||
| }, | ||
| { | ||
| model: "z-ai/glm-5", | ||
| displayName: "GLM-5", | ||
| contextLength: 131000, | ||
| recommendedFor: ["chat"], | ||
| regex: /z-ai\/glm-5/, | ||
| }, | ||
| { | ||
| model: "minimax/minimax-m2.5", | ||
| displayName: "MiniMax M2.5", | ||
| contextLength: 1000000, | ||
| recommendedFor: ["chat"], | ||
| regex: /minimax\/minimax-m2\.5/, | ||
| }, | ||
| ], | ||
| id: "avian", | ||
| displayName: "Avian", | ||
| }; |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.