-
Notifications
You must be signed in to change notification settings - Fork 937
ai docs #4711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ai docs #4711
The head ref may contain hidden characters: "\u00A8pdate-aiDocs"
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
docs/(plugins)/(ai)/ai.mdx
Outdated
| const plugins = [ | ||
| // ...otherPlugins, | ||
| AIPlugin.withComponent(AILeaf), | ||
| aiChatPlugin, | ||
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore Markdown plugin in manual setup
The manual configuration removes MarkdownKit/MarkdownPlugin from the plugin list even though the subsequent streaming code calls streamInsertChunk, which internally invokes editor.getApi(MarkdownPlugin) (see packages/ai/src/react/ai-chat/streaming/streamDeserializeMd.ts). Following this example as written will register only AIPlugin and AIChatPlugin, so the first streamed chunk will throw because no markdown plugin is registered to deserialize chunks. Please include the markdown plugin in the manual setup here (and in the CN doc) so the sample code runs without runtime errors.
Useful? React with 👍 / 👎.
395491a to
5cf38a0
Compare
Checklist
yarn typecheckyarn lint:fixyarn testyarn brlyarn changeset