Closed ScreamZ closed 3 weeks ago
This is interesting!
The initialConversation
uses a different markdown rendering and parser logic (soft line breaks) while the streaming renderer uses hard line breaks.
This is a bug. It's due to difference in markdown implementation between streaming and snapshots.
We'll fix it in 2 steps:
I'll comment on this issue once a fixed is published.
This is interesting!
The
initialConversation
uses a different markdown rendering and parser logic (soft line breaks) while the streaming renderer uses hard line breaks.This is a bug. It's due to difference in markdown implementation between streaming and snapshots.
We'll fix it in 2 steps:
- I'll change the config of snapshot streamer to use hard line breaks (same as stream renderer)
- In future, both streaming and snapshot should use exactly the same code for parsing
I'll comment on this issue once a fixed is published.
Highly appreciated
This should be fixed in 2.3.8
and later ..
Markdown streaming has been refactored, to use the same parser everywhere:
initialConversation
Resolving this as confirmed fixed by @ScreamZ on Discord.
Hi,
Have a look at my code
This gives me
As you can see single
\n
are getting ignored. While double are working. Why not, but let's look further.I just refreshed the page and printed the last message in console. Everything get passed to
initialConversation
.Now it works.
Do you have any explications about this ?
Thanks