Formatted AI responses
With the format: 'rich-text'
option, you can generate AI responses that apply formatting to the content. This is especially useful when you want to generate content that includes rich text formatting like bold, italic, links, and more.
// Steams the response as rich text into the editor
editor
.chain()
.aiTextPrompt({
text: 'Write a list of popular programming languages',
stream: true,
format: 'rich-text',
})
.run()