Skip to content

Conversation

@YousefED
Copy link
Collaborator

@YousefED YousefED commented Sep 16, 2025

This PR is a major update to BlockNote AI 🔥

Overview

  • Updates BlockNote AI to use the Vercel AI SDK 5 (closes The ai-sdk has updated to v5, requesting the compatible AI extension #1952)
  • Now uses streamText + tool calling by default instead of Object Generation
  • Designed to call your own backend (instead of the old proxy-based setup).
  • Leans in more heavily to the updated AI SDK architecture (reusing the Chat and transport concepts)
  • PromptBuilders have been redesigned to split the creation of the required data (PromptBuilderInputData and creation / modification of the LLMMessages
  • fix: better handling of parallel tool calls

Backend pattern

We've revisited the old solution where BlockNote made direct calls to LLMs from the client using the Vercel AI SDK (or via a proxy).

Instead it's now recommended to send request to your backend. There, you can then invoke your LLM (potentially adding more context, tools, RAG, etc). While a bit more work to set up, this architecture is more inline with the Vercel SDK and unlocks more powerful workflows.

Breaking changes

See the updated docs and backend integration guide for an overview of the new APIs. The main breaking change is that createAIExtension now accepts a transport that provides the integration with your backend.

We now recommend to use the Vercel AI SDK on your backend. For alternative options, see the backend integration guide. The previous proxy-based approach is still available and explained in the backend guide.

For assistance in upgrading and integration with your pipeline, please reach out to the team.

supersedes #1903 and #1898
closes #1952
closes #1793
closes #1783
closes #1753
closes #1847
closes #1988

@vercel
Copy link

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
blocknote Ready Ready Preview Sep 29, 2025 11:21am
blocknote-website Ready Ready Preview Sep 29, 2025 11:21am

Copy link
Contributor

@nperez0111 nperez0111 left a comment

Choose a reason for hiding this comment

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

Minor notes, but overall a very successful refactor!

@YousefED YousefED temporarily deployed to feature/ai-sdk-tools - BlockNote PR #2007 September 29, 2025 11:13 — with Render Destroyed
@nperez0111 nperez0111 merged commit e92ee45 into main Sep 29, 2025
8 checks passed
@nperez0111 nperez0111 deleted the feature/ai-sdk-tools branch September 29, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants