Skip to content

feat: add EUrouter as AI provider#2469

Open
DavidLoDico wants to merge 1 commit intoTypeCellOS:mainfrom
DavidLoDico:DavidLoDico/eurouter-ai-provider
Open

feat: add EUrouter as AI provider#2469
DavidLoDico wants to merge 1 commit intoTypeCellOS:mainfrom
DavidLoDico:DavidLoDico/eurouter-ai-provider

Conversation

@DavidLoDico
Copy link

Summary

Adds EUrouter as an AI provider for BlockNote's AI features. EUrouter is an EU-based, GDPR-compliant AI gateway that provides access to multiple AI models through a single OpenAI-compatible API.

  • Add eurouter.chat provider to the model playground server using createOpenAICompatible from @ai-sdk/openai-compatible (zero new dependencies)
  • Add 7 EUrouter models to the playground dropdown (mistral-large-3, gpt-oss-120b, gpt-5-mini, claude-opus-4-6, green-r, deepseek-r1, kimi-k2.5)
  • Add eurouter to the test AI model configuration
  • Add EUROUTER_API_KEY to .env.example files

Changes

File Change
packages/xl-ai-server/src/routes/model-playground/index.ts Add eurouter.chat provider block using createOpenAICompatible
examples/09-ai/02-playground/src/data/aimodels.ts Add 7 EUrouter models to the playground model list
packages/xl-ai/src/testUtil/testAIModels.ts Add eurouter test model entry
packages/xl-ai-server/.env.example Add EUROUTER_API_KEY
packages/xl-ai/.env.example Add EUROUTER_API_KEY

Implementation Details

EUrouter exposes an OpenAI-compatible API at https://api.eurouter.ai/api/v1, so the integration follows the same pattern as the existing albert-etalab provider — using createOpenAICompatible() with no additional SDK dependencies. Authentication uses a Bearer token via the EUROUTER_API_KEY environment variable, which follows the existing getProviderKey() convention.

Test plan

  • Verified streaming responses via curl against the EUrouter API
  • Tested end-to-end in the AI playground (selected EUrouter model, triggered "Simplify" AI edit, confirmed diff view with Accept/Revert)
  • CI passes

Add EUrouter (https://eurouter.ai) as an OpenAI-compatible AI provider.
EUrouter is an EU-based GDPR-compliant AI gateway that routes to
multiple providers through a single API.

- Add eurouter.chat provider using @ai-sdk/openai-compatible
- Add representative models to the playground model list
- Add EUROUTER_API_KEY to both .env.example files
- Add eurouter test model entry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 18, 2026

@DavidLoDico is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

@YousefED YousefED self-assigned this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments