feat: add Brainiall as a named API provider#11712
Closed
fasuizu-br wants to merge 1 commit intoRooCodeInc:mainfrom
Closed
feat: add Brainiall as a named API provider#11712fasuizu-br wants to merge 1 commit intoRooCodeInc:mainfrom
fasuizu-br wants to merge 1 commit intoRooCodeInc:mainfrom
Conversation
Add Brainiall LLM gateway as a first-class provider with 18 models served via AWS Bedrock (Claude, DeepSeek, Llama, Nova, Mistral, Qwen, MiniMax, Kimi, GPT OSS). OpenAI-compatible API with Bearer auth at https://apim-ai-apis.azure-api.net/v1. Follows the xAI pattern: hardcoded model list, OpenAI SDK, fixed baseURL. Supports streaming, tool calls, reasoning content (DeepSeek R1), and prompt caching (Claude models).
Author
|
Hi @hannesrudolph, thanks for taking the time to review. I noticed the PR was closed without feedback — could you share what needs to change for a provider addition to be accepted? I see the project follows an Issue-First approach (CONTRIBUTING.md), and I didn't create a linked issue beforehand — that may have been the reason. I also noticed PR #11297 removed 9 low-usage providers, so I understand the team is being selective. If adding Brainiall as a named provider is something the project would consider (it's an OpenAI-compatible gateway to 113+ models on AWS Bedrock with Flex/Cache pricing), I'm happy to:
Any guidance would be appreciated! |
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://apim-ai-apis.azure-api.net/v1with Bearer authpreserveReasoning), reasoning budget (Claude Opus 4.5 viasupportsReasoningBudget), and prompt caching (Claude models)Models (18 total)
Files changed (33 files)
New files (3):
packages/types/src/providers/brainiall.ts— Model definitionssrc/api/providers/brainiall.ts— API handler (OpenAI SDK)webview-ui/src/components/settings/providers/Brainiall.tsx— Settings UIModified files (30):
packages/types/: provider-settings, providers/index, global-settings (secret keys)src/api/: index (switch case), providers/index (export)src/shared/: ProfileValidator (model ID resolution)webview-ui/: ApiOptions, constants, providers/index, providerModelConfig, useSelectedModel, validateca,de,en,es,fr,hi,id,it,ja,ko,nl,pl,pt-BR,ru,tr,vi,zh-CN,zh-TW)Test plan
pnpm --filter @roo-code/types buildpasses (DTS + CJS + ESM)tsc --noEmitpasses for all packages (types, roo-cline, vscode-webview, etc.)--max-warnings=0Interactively review PR in Roo Code Cloud