Skip to content

BlockNote and AI SDK Version 6 #2598

@canal-side-coder

Description

@canal-side-coder

What’s broken?

When using sendMessageWithAIRequest along with useChat and chatProvider I am seeing the following error:
e.~registerMessagesCallback is not a function

I am using this to build the AI Request:

const aiRequest = await buildAIRequest({
     editor: editor,
     useSelection: true,
 });

I am currently using:

"@ai-sdk/react": "^3.0.143",

"@blocknote/core": "^0.47.1",
"@blocknote/react": "^0.47.1",
"@blocknote/shadcn": "^0.47.1",
"@blocknote/xl-ai": "^0.47.1",

Could this be a version issue between BlockNote and Vercel AI SDK?
Does BlockNote support AI SDK version 6?

What did you expect to happen?

To have control over sending messages and handling responses outside of the AIExtension with Versel AI SDK V6.

Steps to reproduce

No response

BlockNote version

0.47.1

Environment

Chrome, MacOS

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue has not yet been reviewed or classified by maintainers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions