feat: add Avian as a new API provider#11779
Open
avianion wants to merge 2 commits intoRooCodeInc:mainfrom
Open
feat: add Avian as a new API provider#11779avianion wants to merge 2 commits intoRooCodeInc:mainfrom
avianion wants to merge 2 commits intoRooCodeInc:mainfrom
Conversation
Add Avian (https://avian.io) as an OpenAI-compatible LLM provider with four models: DeepSeek V3.2, Kimi K2.5, GLM-5, and MiniMax M2.5. Follows the BaseOpenAiCompatibleProvider pattern (same as SambaNova, Fireworks). Includes model definitions, handler, settings UI, tests, and localization.
Add avianApiKey and getAvianApiKey entries to all 17 non-English locale settings.json files to fix the check-translations CI check.
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
BaseOpenAiCompatibleProviderpattern (same as SambaNova, Fireworks)AVIAN_API_KEYenvironment variableModels
deepseek/deepseek-v3.2(default)moonshotai/kimi-k2.5z-ai/glm-5minimax/minimax-m2.5Changes
New files:
packages/types/src/providers/avian.ts— model type definitions and pricingsrc/api/providers/avian.ts— handler extendingBaseOpenAiCompatibleProvidersrc/api/providers/__tests__/avian.spec.ts— 17 unit testswebview-ui/src/components/settings/providers/Avian.tsx— settings UIModified files (provider registration):
packages/types/src/providers/index.ts— export types + default modelpackages/types/src/provider-settings.ts— schema, provider name, model ID key, MODELS_BY_PROVIDERsrc/api/providers/index.ts— export handlersrc/api/index.ts— factory switch casesrc/shared/ProfileValidator.ts— profile model ID resolutionwebview-ui/src/components/settings/providers/index.ts— export UI componentwebview-ui/src/components/settings/constants.ts— MODELS_BY_PROVIDER + PROVIDERS listwebview-ui/src/components/settings/utils/providerModelConfig.ts— service config + defaultswebview-ui/src/components/settings/ApiOptions.tsx— provider rendering + model configwebview-ui/src/components/ui/hooks/useSelectedModel.ts— model selection casewebview-ui/src/i18n/locales/en/settings.json— English translationsTest plan
npx vitest run src/api/providers/__tests__/avian.spec.ts)turbo check-types)turbo lint)Interactively review PR in Roo Code Cloud