Conversation
2bb8181 to
f0cc189
Compare
f0cc189 to
77e975d
Compare
7db9314 to
683e0c1
Compare
7d87316 to
223e062
Compare
c75ec77 to
50c73f2
Compare
9a56292 to
72475ac
Compare
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.
72475ac to
86bde35
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Size Change: -1.77 kB (-0.04%) Total Size: 4.19 MB
|
|
🚀 Preview will be available at https://1016-docs.ppr-docs.beta.numerique.gouv.fr/ You can use the existing account with these credentials:
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. |
|
|
||
| const extension = AIExtension({ | ||
| agentCursor: conf.AI_BOT, | ||
| transport: new ClientSideTransport({ model }), |
There was a problem hiding this comment.
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)?
|
Closed in favor of #1847 |
Purpose
New AI feature powered by Blocknote. 🚀
Proposal
New Settings:
AI_STREAMis a setting because not all model support the stream mode.Careful
Demo
scrnli_d3axj9UKFSv1f5.online-video-cutter.com.1.mp4