Skip to content

Add Brainiall as a named model provider#10746

Open
fasuizu-br wants to merge 3 commits intocontinuedev:mainfrom
fasuizu-br:add-brainiall-provider-v2
Open

Add Brainiall as a named model provider#10746
fasuizu-br wants to merge 3 commits intocontinuedev:mainfrom
fasuizu-br:add-brainiall-provider-v2

Conversation

@fasuizu-br
Copy link

@fasuizu-br fasuizu-br commented Feb 23, 2026

Summary

Adds Brainiall as a named model provider for Continue. Brainiall offers 18+ AI models (Claude, DeepSeek, Llama, Qwen, Nova, Mistral, and more) through a single OpenAI-compatible API endpoint, powered by AWS Bedrock.

Changes

  • New LLM class (core/llm/llms/Brainiall.ts): Extends OpenAI with Brainiall-specific defaults (apiBase, models)
  • Config schema (extensions/vscode/config_schema.json): Added brainiall to provider enum, markdown descriptions, apiKey requirement, and embeddings provider
  • LLM registry (core/llm/llms/index.ts): Registered Brainiall class in imports and LLMClasses array
  • Documentation (docs/customize/model-providers/more/brainiall.mdx): Setup guide with configuration examples for chat, autocomplete, and embeddings
  • Sidebar navigation (docs/docs.json): Added to "More Providers" section

Testing

  • Verified JSON schema validity (both config_schema.json and docs.json parse correctly)
  • Provider enum and markdownEnumDescriptions arrays are aligned (50 entries each)
  • LLM class follows the same pattern as other OpenAI-compatible providers (Nebius, DeepInfra, etc.)

Continue Tasks: ❌ 7 failed — View all


Summary by cubic

Adds Brainiall as a named provider to Continue, giving access to 100+ models (Claude, DeepSeek, Llama, Qwen, Nova, Mistral, and more) via a single OpenAI-compatible endpoint. Includes provider registration, GUI presets, autodetect templating/image/parallel support, embeddings, and docs.

  • New Features

    • New Brainiall LLM class extending OpenAI with default apiBase (https://apim-ai-apis.azure-api.net/v1/) and modern completions.
    • Registered in the LLM registry and added to autodetect templating and image support lists.
    • GUI Add Model: provider entry with API key input, icon, and six presets (Claude Opus/Sonnet/Haiku, DeepSeek R1/V3, Llama 3.3 70B).
    • Documentation: setup guide with model list and pricing; added to More Providers sidebar.
    • Config schema: added to provider enums (including embeddings), markdown descriptions, and requires API key.
  • Bug Fixes

    • Added Brainiall to autodetect parallel providers to enable parallel generation and align with other provider lists.

Written for commit 91732c5. Summary will update on new commits.

@fasuizu-br fasuizu-br requested a review from a team as a code owner February 23, 2026 13:14
@fasuizu-br fasuizu-br requested review from Patrick-Erichsen and removed request for a team February 23, 2026 13:14
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 23, 2026
@fasuizu-br
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@haystack-code-reviewer-pr-hook

Try Haystack Code Reviewer

Want AI-powered code review for this PR? Get instant analysis, interactive visualizations, and actionable insights.

Review this PR with Haystack

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@fasuizu-br
Copy link
Author

Hi team! All core CI checks pass (CLA, lint, build, e2e, tests, prettier). The cubic-dev-ai review found no issues. The 7 'Continuous AI' agent failures are their internal bot errors, not related to our changes. This adds Brainiall as an OpenAI-compatible provider with 12 models. Ready for review. Thank you!

@fasuizu-br
Copy link
Author

Hi! CLA is signed and core CI is passing. Let me know if there's anything I can improve. Thanks for your time!

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 28, 2026
@github-actions
Copy link

github-actions bot commented Feb 28, 2026


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
✅ (fasuizu-br)[https://github.com/fasuizu-br]
@claude DevOps Engineer
Claude DevOps Engineer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="extensions/vscode/config_schema.json">

<violation number="1">
P2: Brainiall was removed from the VS Code config schema enums and requirements, but the provider is still defined and documented elsewhere. This will cause schema validation/UI selection to reject provider: brainiall and skip required apiKey/embedding support, leaving the schema out of sync with the actual provider list.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@fasuizu-br fasuizu-br force-pushed the add-brainiall-provider-v2 branch from 93989a4 to 853b583 Compare February 28, 2026 12:29
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)
@fasuizu-br fasuizu-br force-pushed the add-brainiall-provider-v2 branch from 853b583 to df94729 Compare February 28, 2026 13:14
fasuizu-br and others added 2 commits February 28, 2026 12:28
- 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
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.
@fasuizu-br
Copy link
Author

Fixed — here's a summary of what @cubic-dev-ai flagged and what was done:

Issue identified: brainiall was missing from PARALLEL_PROVIDERS in core/llm/autodetect.ts. The initial commit added brainiall to PROVIDER_HANDLES_TEMPLATING and PROVIDER_SUPPORTS_IMAGES, but missed this third list. Nebius and sambanova (the closest equivalent providers) were already in all three lists.

Fix applied (commit 91732c5a9): Added brainiall to PARALLEL_PROVIDERS — brainiall is an OpenAI-compatible gateway backed by AWS Bedrock, which supports parallel generation.

config_schema.json status (already correct, no change needed):

  • $defs.ModelDescription.properties.provider.enum — brainiall at index 6 with description ✅
  • $defs.ModelDescription.allOf[1].if.properties.provider.enum — brainiall present (triggers apiKey requirement) ✅
  • $defs.SerializedContinueConfig.properties.embeddingsProvider.properties.provider.enum — brainiall present ✅

All three enum locations in config_schema.json were correctly set in the initial commit. The only real gap was the missing PARALLEL_PROVIDERS entry in autodetect.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant