Get the latest tech news
Preventing Flash of Incomplete Markdown when streaming AI responses
You’ve heard of Flash of Unstyled Content (FOUC) before, where you see unstyled HTML appear, then the CSS loads and the browser suddenly updates to display the correct style. A similar problem occurs when streaming AI responses and there's a simple solution for it.
A similar problem exists when streaming responses generated by AI that I call “Flash of Incomplete Markdown” (FOIM). One of the AI features Streak offers is the ability to ask a question about one of your deals, where the answer may be in any related email threads, various comments, meeting notes, and so on. I haven’t implemented support for the full spec since we have well known formats for our link text and URLs, but should the need arise the state machine can easily be extended.
Or read this on Hacker News