feat(blog): add 'Streaming thoughts' post#294
Conversation
300219a to
d6d0787
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a new blog post on streaming AI model thoughts using Genkit, accompanied by an interactive Astro demo component and adaptive CSS styling. Key feedback includes resolving a double-initialization issue in the demo's event listeners, ensuring proper rendering of newlines in chat bubbles, and correcting the model name from the non-existent 'gemini-3.5-flash' to 'gemini-2.0-flash' for consistency and correctness.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| .model-message .message-content p { | ||
| line-height: 1.6; | ||
| margin-bottom: 8px; | ||
| } |
There was a problem hiding this comment.
The simulated responses in getSimulationScenario contain newlines (\n\n) to format paragraphs and lists. However, because HTML collapses whitespace by default, these newlines will not render as line breaks in the chat bubble, causing the text to run together on a single line. Adding white-space: pre-wrap; ensures that the formatting is preserved.
.model-message .message-content p {
line-height: 1.6;
margin-bottom: 8px;
white-space: pre-wrap;
}
d6d0787 to
55f9e07
Compare
…nder Astro View Transitions
|
/gcbrun |
|
can we remove the purple highlights? it looks like a link but it isn't. @nohe427 |
No description provided.