Skip to content

✨ Blocknote AI#1847

Open
AntoLC wants to merge 10 commits intomainfrom
feat/blocknote-ai
Open

✨ Blocknote AI#1847
AntoLC wants to merge 10 commits intomainfrom
feat/blocknote-ai

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Jan 30, 2026

Purpose

New AI feature powered by Blocknote. 🚀

Proposal

  • Better UI
  • Possibility to revert what the AI made
  • Collaborative friendly - Other collaborators will see the AI changes only when changes are accepted

New Settings:

AI_BOT = values.DictValue(
       default={
           "name": _("Docs AI"),
           "color": "#8bc6ff",
       },
       environ_name="AI_BOT",
       environ_prefix=None,
   )
AI_MODEL = values.Value(None, environ_name="AI_MODEL", environ_prefix=None)
AI_STREAM = values.BooleanValue(
       default=True, environ_name="AI_STREAM", environ_prefix=None
)

AI_STREAM is a setting because not all model support the stream mode.

Careful

⚠️ This feature is under AGPL license.
You can still use the previous AI feature that is under MIT license.

Demo

Enregistrement.2026-02-03.113122.mp4

@socket-security
Copy link

socket-security bot commented Jan 30, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​blocknote/​xl-ai@​0.46.280100799870
Added@​ai-sdk/​openai@​3.0.19991008698100
Addedai@​6.0.499810010099100

View full report

@socket-security
Copy link

socket-security bot commented Jan 30, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

Size Change: +406 B (+0.01%)

Total Size: 4.2 MB

Filename Size Change
apps/impress/out/_next/static/chunks/3642.js 0 B -783 kB (removed) 🏆
apps/impress/out/_next/static/chunks/7934.js 783 kB +783 kB (new file) 🆕
apps/impress/out/_next/static/chunks/8495.js 65.9 kB +1.05 kB (+1.61%)
apps/impress/out/_next/static/css/1e509c66bde71be8.css 34.3 kB +34.3 kB (new file) 🆕
apps/impress/out/_next/static/css/baacd4c537066d47.css 0 B -34.1 kB (removed) 🏆
apps/impress/out/_next/static/e42ca8ef/_buildManifest.js 832 B +832 B (new file) 🆕
apps/impress/out/_next/static/f4f996cf/_buildManifest.js 0 B -831 B (removed) 🏆

compressed-size-action

@AntoLC AntoLC self-assigned this Jan 30, 2026
@github-actions
Copy link

github-actions bot commented Jan 30, 2026

🚀 Preview will be available at https://docs-ia.beta.numerique.gouv.fr/

You must create a access with yopmail.

Once this Pull Request is merged, the preview will be destroyed.

@AntoLC AntoLC changed the title Feat/blocknote ai ✨ Blocknote AI Jan 30, 2026
@AntoLC AntoLC force-pushed the feat/blocknote-ai branch 4 times, most recently from 7d5fed3 to 85ae764 Compare February 2, 2026 16:30
@AntoLC AntoLC marked this pull request as ready for review February 2, 2026 16:31
@AntoLC AntoLC force-pushed the feat/blocknote-ai branch 3 times, most recently from a899b5d to b617394 Compare February 3, 2026 09:50
@AntoLC AntoLC requested review from Ovgodd and lunika February 3, 2026 09:54
@AntoLC AntoLC linked an issue Feb 3, 2026 that may be closed by this pull request
@AntoLC AntoLC force-pushed the feat/blocknote-ai branch from cbfc92f to d8f03e2 Compare February 4, 2026 14:56
AntoLC and others added 8 commits February 4, 2026 15:57
Add AI proxy to handle AI related requests
to the AI service.
We make the AI bot configurable with settings.
We will be able to have different AI bot name
per instance.
We want to handle both streaming or not when interacting with the AI
backend service.
Standard can vary depending on the AI service used.
To work with Albert API:
- a description field is required in the payload
  for every tools call.
- if stream is set to false, stream_options must
  be omitted from the payload.
- the response from Albert sometimes didn't respect
  the format expected by Blocknote, so we added a
  system prompt to enforce it.
We integrate the new Blocknote AI feature
into Docs, enhancing the document editing experience
with AI capabilities.
AI feature is under AGPL license, so it is removed
when the project is under MIT license.
NEXT_PUBLIC_PUBLISH_AS_MIT manage this.
Bind ai_proxy abilities to the AI feature.
If ai_proxy is false, the AI feature will
not be available.
notify screen readers about ai thinking, writing, ready, or error
@AntoLC AntoLC force-pushed the feat/blocknote-ai branch from d8f03e2 to dbbe7ee Compare February 4, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡️Improve AI requests

3 participants