From df94729a56e4063c662cbf1216b43b1c588c46c3 Mon Sep 17 00:00:00 2001 From: Fabio Suizu Date: Sat, 28 Feb 2026 09:29:21 -0300 Subject: [PATCH 1/3] feat: add Brainiall as LLM provider Add Brainiall as a named provider in Continue, giving access to 100+ AI models (Claude, DeepSeek, Llama, Mistral, Nova, and more) through a single OpenAI-compatible endpoint powered by AWS Bedrock. - Add Brainiall LLM class extending OpenAI - Register in PROVIDER_HANDLES_TEMPLATING and PROVIDER_SUPPORTS_IMAGES - Add 6 model presets (Claude Opus/Sonnet/Haiku, DeepSeek R1/V3, Llama 3.3 70B) - Add provider config with API key input and signup URL - Add documentation page (brainiall.mdx) with model pricing table - Add provider logo (brainiall.png) - Add to config_schema.json (provider enum, apiKey requirement, embeddings) --- core/llm/autodetect.ts | 2 + core/llm/llms/Brainiall.ts | 13 +++ core/llm/llms/index.ts | 2 + .../model-providers/more/brainiall.mdx | 59 ++++++++++++ docs/docs.json | 1 + extensions/vscode/config_schema.json | 4 + gui/public/logos/brainiall.png | Bin 0 -> 6300 bytes gui/src/pages/AddNewModel/configs/models.ts | 90 ++++++++++++++++++ .../pages/AddNewModel/configs/providers.ts | 30 ++++++ 9 files changed, 201 insertions(+) create mode 100644 core/llm/llms/Brainiall.ts create mode 100644 docs/customize/model-providers/more/brainiall.mdx create mode 100644 gui/public/logos/brainiall.png diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 4085d3798b7..bb8aea7c52b 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -54,6 +54,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [ "msty", "anthropic", "bedrock", + "brainiall", "cohere", "sagemaker", "continue-proxy", @@ -118,6 +119,7 @@ const PROVIDER_SUPPORTS_IMAGES: string[] = [ "msty", "anthropic", "bedrock", + "brainiall", "sagemaker", "continue-proxy", "openrouter", diff --git a/core/llm/llms/Brainiall.ts b/core/llm/llms/Brainiall.ts new file mode 100644 index 00000000000..a48d1b30be3 --- /dev/null +++ b/core/llm/llms/Brainiall.ts @@ -0,0 +1,13 @@ +import { LLMOptions } from "../.."; + +import OpenAI from "./OpenAI"; + +class Brainiall extends OpenAI { + static providerName = "brainiall"; + static defaultOptions: Partial = { + apiBase: "https://apim-ai-apis.azure-api.net/v1/", + useLegacyCompletionsEndpoint: false, + }; +} + +export default Brainiall; diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 04f58e393de..0f81b2180be 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -14,6 +14,7 @@ import Asksage from "./Asksage"; import Azure from "./Azure"; import Bedrock from "./Bedrock"; import BedrockImport from "./BedrockImport"; +import Brainiall from "./Brainiall"; import Cerebras from "./Cerebras"; import Cloudflare from "./Cloudflare"; import Cohere from "./Cohere"; @@ -94,6 +95,7 @@ export const LLMClasses = [ Mimo, Bedrock, BedrockImport, + Brainiall, SageMaker, DeepInfra, Flowise, diff --git a/docs/customize/model-providers/more/brainiall.mdx b/docs/customize/model-providers/more/brainiall.mdx new file mode 100644 index 00000000000..3d8b0757b12 --- /dev/null +++ b/docs/customize/model-providers/more/brainiall.mdx @@ -0,0 +1,59 @@ +--- +title: "Brainiall" +description: "Configure Brainiall with Continue to access 100+ AI models including Claude, DeepSeek, Llama, Mistral, and more through a single OpenAI-compatible endpoint" +--- + +Brainiall is an AI API gateway providing access to 100+ models including Claude, DeepSeek, Llama, Mistral, Nova, and more through a single OpenAI-compatible endpoint powered by AWS Bedrock. + +You can get an API key at [app.brainiall.com](https://app.brainiall.com) + +## Available Models + +| Model | Context | Input $/M | Output $/M | +| ----- | ------- | --------- | ---------- | +| claude-opus-4-6 | 200K | $5.00 | $25.00 | +| claude-sonnet-4-6 | 200K | $3.00 | $15.00 | +| claude-haiku-4-5 | 200K | $1.00 | $5.00 | +| deepseek-r1 | 128K | $1.35 | $5.40 | +| deepseek-v3 | 128K | $0.27 | $1.10 | +| llama-3.3-70b | 128K | $0.72 | $0.72 | +| llama-4-scout | 512K | $0.17 | $0.17 | +| nova-pro | 300K | $0.80 | $3.20 | +| mistral-large-3 | 128K | $2.00 | $6.00 | +| qwen3-80b | 128K | $0.50 | $0.50 | +| minimax-m2 | 1M | $1.00 | $5.00 | +| kimi-k2.5 | 128K | $0.60 | $2.40 | + +[View all models](https://app.brainiall.com/docs-page) + +## Chat Model + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: Claude Sonnet 4.6 + provider: brainiall + model: claude-sonnet-4-6 + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Claude Sonnet 4.6", + "provider": "brainiall", + "model": "claude-sonnet-4-6", + "apiKey": "" + } + ] + } + ``` + + diff --git a/docs/docs.json b/docs/docs.json index 379837394d8..ebe5468962e 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -169,6 +169,7 @@ "group": "More Providers", "pages": [ "customize/model-providers/more/asksage", + "customize/model-providers/more/brainiall", "customize/model-providers/more/deepseek", "customize/model-providers/more/deepinfra", "customize/model-providers/more/groq", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index c7bd24175d5..b7a6c118bea 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -192,6 +192,7 @@ "cohere", "bedrock", "bedrockimport", + "brainiall", "sagemaker", "together", "novita", @@ -243,6 +244,7 @@ "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", + "### Brainiall\nBrainiall is an AI API gateway providing access to 100+ models including Claude, DeepSeek, Llama, and more. Get an API key at [app.brainiall.com](https://app.brainiall.com).\n\n> [Reference](https://docs.continue.dev/customize/model-providers/more/brainiall)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Novita AI\n[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM APIs](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. To get started with Novita AI:\n1. Obtain an API key from [here](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/novita)", @@ -518,6 +520,7 @@ "enum": [ "openai", "anthropic", + "brainiall", "cohere", "gemini", "huggingface-inference-api", @@ -2859,6 +2862,7 @@ "voyage", "nvidia", "bedrock", + "brainiall", "sagemaker", "nebius", "vertexai", diff --git a/gui/public/logos/brainiall.png b/gui/public/logos/brainiall.png new file mode 100644 index 0000000000000000000000000000000000000000..5d7cfb7160e01cdeee00f9cb15a3eb7f52029be2 GIT binary patch literal 6300 zcmd5>S6tKCwhoGlGSX~xP*g?{P*52V2!aTRQU(F35s}^$BmqJaltGk^3`Y7OB}g55 z2_Y)dB~d^kHKUY3LJ~wA)=IP#tJnX&K`tMb~wf5d$p4!=1?B6H9 z4*&q{x3awQGXNlxvHcUmtuAOrLI-Vz>Ab;S286p zJbecvN|_&&I{K*pG*2R87Q9cPv=!kDadtMs>%($sm9@1~j?+XK9UA6npXcEn?y5^s8i#^F8iNE0p@Fi z>q;7RN~I;@-cFT$T9OvdH5pIbg6N%A73#)Z04pg=Y|p_{U66@8gt}a{4x6xhChvBt z3a*S(_wU>ONZsJ>tEE<;LD9HPM|zwr3^0!!+?`@dJ|wjY_)#&Nonl!aA}tyB*1;wH z$%~yLs-@%GLI-OH4Xz%&u=|Q3prZQ3F|e12R0Do{!OrHR+)_SCDy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w}DKd!FfZ#9WmZV)`sYZda5)h>-4 z)nZx~X+ZTyNptgJP=ny38Ug?x&NqW45d`J1l zkEF_~F6PgMvDcEl^yn14 zQ;^U1d*w))*U`V}WD)l}+JA)1iR@8qgRiY1*JOQ8EJJVwm(Ww07RqSDMsbPoY>!*> zzc$ek!?~ZzmOGQqdE3Oawzb_QOg2|pFX9m;L2Ra0rAl))?&D9SeEbfd3m{*5OZ0dLdIcYym$ zimy@sjY5qwxn8={4wU2j7Zx>D{7JMFfc!J&(Dtq?(o!W-fWQWb+CK=}h67UQ`hOC* z6MiNsrhtm7z1yN=vfHB1#~8KE&1oiAM1Q-d`D#uRPkp;XwGsD6 ztFyr(15z?^o1ZD8D Date: Sat, 28 Feb 2026 12:28:39 -0300 Subject: [PATCH 2/3] fix: correct model specs in docs pricing table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - llama-4-scout: context 512K→3.5M, output $0.17→$0.66 - mistral-large-3: context 128K→262K - qwen3-80b: context 128K→262K, pricing $0.50/$0.50→$0.14/$1.40 - minimax-m2: context 1M→204K, pricing $1/$5→$0.30/$1.20 - kimi-k2.5: context 128K→256K, output $2.40→$3.00 --- docs/customize/model-providers/more/brainiall.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/customize/model-providers/more/brainiall.mdx b/docs/customize/model-providers/more/brainiall.mdx index 3d8b0757b12..7d591073ff0 100644 --- a/docs/customize/model-providers/more/brainiall.mdx +++ b/docs/customize/model-providers/more/brainiall.mdx @@ -17,12 +17,12 @@ You can get an API key at [app.brainiall.com](https://app.brainiall.com) | deepseek-r1 | 128K | $1.35 | $5.40 | | deepseek-v3 | 128K | $0.27 | $1.10 | | llama-3.3-70b | 128K | $0.72 | $0.72 | -| llama-4-scout | 512K | $0.17 | $0.17 | +| llama-4-scout | 3.5M | $0.17 | $0.66 | | nova-pro | 300K | $0.80 | $3.20 | -| mistral-large-3 | 128K | $2.00 | $6.00 | -| qwen3-80b | 128K | $0.50 | $0.50 | -| minimax-m2 | 1M | $1.00 | $5.00 | -| kimi-k2.5 | 128K | $0.60 | $2.40 | +| mistral-large-3 | 262K | $2.00 | $6.00 | +| qwen3-80b | 262K | $0.14 | $1.40 | +| minimax-m2 | 204K | $0.30 | $1.20 | +| kimi-k2.5 | 256K | $0.60 | $3.00 | [View all models](https://app.brainiall.com/docs-page) From 91732c5a9b9aac0683edf198032bfbc76cf37e26 Mon Sep 17 00:00:00 2001 From: Claude DevOps Engineer Date: Sun, 1 Mar 2026 05:46:08 -0300 Subject: [PATCH 3/3] fix: add brainiall to PARALLEL_PROVIDERS in autodetect.ts Brainiall supports parallel generation (OpenAI-compatible gateway). This aligns brainiall with nebius and sambanova which were already listed, and ensures consistent coverage across all three provider lists: - PROVIDER_HANDLES_TEMPLATING (added in initial commit) - PROVIDER_SUPPORTS_IMAGES (added in initial commit) - PARALLEL_PROVIDERS (this fix) Also confirms config_schema.json already has brainiall in all 3 required enum locations: main provider enum, allOf[1] apiKey requirement, and embeddingsProvider enum. --- core/llm/autodetect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index bb8aea7c52b..c32444bce1e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -233,6 +233,7 @@ function modelSupportsReasoning( const PARALLEL_PROVIDERS: string[] = [ "anthropic", "bedrock", + "brainiall", "cohere", "sagemaker", "deepinfra",