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.
Ready. Enter a prompt and click the button.
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.