LLM stream to generate markdown text and insert to editor #5967
Unanswered
laotala828
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hello were you able to figure it out. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I had a similar issue. U can solve this if u replace
but in my case i'm not streaming chunk by chunk ... but instead I wait for the whole result and add this result only once ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm quite new to Lexical and have been experimenting with using AI streams to create markdown text in an editor.
Typing directly into the editor works fine.
keyboard.mov
But I'm encountering issues when trying to insert text from the AI stream into the editor.
llm.mov
Currently, I'm using
selection.insertRawText(chunk)
for this purpose. Could you help me figure out if I'm missing something? Thanks a lot!Beta Was this translation helpful? Give feedback.
All reactions