Chrome Built-in AI: Simple Streaming

This example shows how to use the LanguageModel.promptStreaming() method. Unlike the standard prompt, this method returns text incrementally as it is generated, which is ideal for displaying responses in real-time without delay.

Your Prompt

Status and Output

Ready. Enter a prompt and click the button.


A Note on Chrome Flags

To use this feature, you must have the "Enable built-in AI" flag enabled in Chrome. Open a new tab, paste the link below, press Enter, enable the flag, and then restart Chrome.



My GitHub

You can find more of my work on my hpssjellis GitHub page:

By Jeremy Ellis LinkedIn