Skip to content

✨ Blocknote AI#1016

Closed
AntoLC wants to merge 16 commits intomainfrom
refacto/blocknote-ai
Closed

✨ Blocknote AI#1016
AntoLC wants to merge 16 commits intomainfrom
refacto/blocknote-ai

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented May 28, 2025

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=False, 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.

Demo

scrnli_d3axj9UKFSv1f5.online-video-cutter.com.1.mp4

@AntoLC AntoLC self-assigned this May 28, 2025
@AntoLC AntoLC added frontend feature add a new feature labels May 28, 2025
@AntoLC AntoLC changed the title ✨ Blocknote ai ✨ Blocknote AI May 28, 2025
@AntoLC AntoLC marked this pull request as draft May 28, 2025 12:24
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch 2 times, most recently from 2bb8181 to f0cc189 Compare June 2, 2025 09:12
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch from f0cc189 to 77e975d Compare June 5, 2025 14:57
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch 12 times, most recently from 7db9314 to 683e0c1 Compare June 10, 2025 14:24
@AntoLC AntoLC marked this pull request as ready for review June 10, 2025 14:25
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch 2 times, most recently from 7d87316 to 223e062 Compare June 10, 2025 15:21
@AntoLC AntoLC requested review from PanchoutNathan and lunika June 10, 2025 15:22
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch 2 times, most recently from c75ec77 to 50c73f2 Compare June 13, 2025 09:13
@AntoLC AntoLC removed the request for review from PanchoutNathan June 13, 2025 09:16
@AntoLC AntoLC requested a review from lunika July 2, 2025 07:21
AntoLC and others added 16 commits January 27, 2026 17:52
Add AI proxy to handle AI related requests
to the AI service.
We integrate the new Blocknote AI feature
into Docs, enhancing the document editing experience
with AI capabilities.
We make the AI bot configurable with settings.
We will be able to have different AI bot name
per instance.
Some answers were a bit too concise or not detailed enough.
Improve some prompts to get better answers from the AI.
We replace the previous AI feature with a new one
that uses the BlockNote AI service.
We can remove the dead codes.
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.
We want to handle both streaming or not when interacting with the AI
backend service.
@AntoLC AntoLC force-pushed the refacto/blocknote-ai branch from 72475ac to 86bde35 Compare January 27, 2026 16:53
@github-actions
Copy link

Size Change: -1.77 kB (-0.04%)

Total Size: 4.19 MB

Filename Size Change
apps/impress/out/_next/static/7e0adc09/_buildManifest.js 847 B +847 B (new file) 🆕
apps/impress/out/_next/static/chunks/1217.js 0 B -784 kB (removed) 🏆
apps/impress/out/_next/static/chunks/4365.js 782 kB +782 kB (new file) 🆕
apps/impress/out/_next/static/chunks/8495.js 64.3 kB -923 B (-1.42%)
apps/impress/out/_next/static/chunks/pages/_app.js 568 kB +724 B (+0.13%)
apps/impress/out/_next/static/css/33e26b94e6f50ff0.css 0 B -33.8 kB (removed) 🏆
apps/impress/out/_next/static/css/eae5e6f534c4d2d6.css 34 kB +34 kB (new file) 🆕
apps/impress/out/_next/static/d03cceb5/_buildManifest.js 0 B -851 B (removed) 🏆

compressed-size-action

@AntoLC
Copy link
Collaborator Author

AntoLC commented Jan 27, 2026

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

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

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

@virgile-dev
Copy link
Collaborator

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

You can use the existing account with these credentials:

* username: `docs`

* password: `docs`

You can also create a new account if you want to.

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

@AntoLC I can't load the page even ignoring the security warnings in my browser.

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

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

Hi @AntoLC!

As I was tagged in this PR I just had a super quick check to see how things are set up. I noticed some constructs are a bit different than our current default setup - see comments!


const extension = AIExtension({
agentCursor: conf.AI_BOT,
transport: new ClientSideTransport({ model }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to use a ClientSideTransport and a proxy that directly forwards the requests?

I can imagine it might be more consistent with your other AI backends to just call an AI model on the backend and see if you can return an AISDK-compatible DataStreamResponse from the backend (see here. If I'm not mistaken you're already using the AI SDK for different products (and thus already can stream compatible response)?

@AntoLC
Copy link
Collaborator Author

AntoLC commented Feb 12, 2026

Closed in favor of #1847

@AntoLC AntoLC closed this Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡️Improve AI requests

4 participants

Comments