AI Settings

Streaming responses

Show AI answers word by word as they are generated, understand when Promptor falls back to complete answers, and fix streaming problems.

With streaming on, the chat shows the answer word by word while the AI writes it, instead of making the visitor wait for the complete reply. Since 2.1.0 the first words appear as soon as the model produces them. Streaming is on by default.

Settings › AI Behavior lower half with Similarity Threshold, Enable Streaming Responses and conversation summarization
The Conversation Management card holds the streaming switch

Turn streaming on or off

  1. Go to Settings › AI Behavior.
  2. Scroll to the Conversation Management card.
  3. Tick or untick Enable Streaming Responses.
  4. Click Save Changes.
SettingWhat it doesDefault
Enable Streaming ResponsesShow AI answers word-by-word as they are generated. Falls back automatically on hosts that buffer output. Applies to the direct OpenAI provider only.On

When streaming is used

Streaming applies to the direct OpenAI provider only. With the WordPress AI Client provider, answers always arrive in one piece, even when the box is ticked. Streaming is also not used during the free trial.

Streaming needs all of the following:

  • AI Provider is OpenAI API (direct). See Choose your AI provider.
  • You use your own OpenAI API key, not the free trial.
  • Your server's PHP has the cURL extension. Almost every host has it. Without it, the streaming request is refused with "Streaming is not available on this server." and visitors get complete answers.
  • The visitor's browser supports streamed responses. All current browsers do.

When any of these is missing, visitors still get answers. They just appear all at once.

Automatic fallback

Some hosts, proxies and CDNs hold back ("buffer") the response until it is complete, which breaks word-by-word display. Promptor protects visitors from this:

  1. Promptor asks the server and proxies not to buffer or compress the stream.
  2. If the first words don't arrive within 6 seconds, or the response isn't a stream, the chat quietly asks for the complete answer instead.
  3. If streaming fails twice in a row, the chat stops trying for that visitor for 6 hours and uses complete answers. This is remembered for the visitor's browser session only.

In each case the visitor still gets the answer. It just appears in one piece, a little later.

Troubleshooting

Answers appear all at once although streaming is on.

  • Check that AI Provider is OpenAI API (direct) and you are not on the free trial.
  • Your host or CDN may buffer responses. Ask your host whether output buffering or response compression can be disabled for admin-ajax.php. nginx proxies, CDNs and gzip compression are the usual causes.
  • If you tested on a page where streaming failed twice, the browser has switched it off for 6 hours. Test again in a new private window.

Answers are slow to start.

  • The fallback waits up to 6 seconds for the first words. If your host always buffers, turning streaming off avoids that wait: untick Enable Streaming Responses and save.

A caching or optimization plugin breaks the chat.

Still need help?

Our support team answers every ticket. Tell us your WordPress version, Promptor version and what you see.

Read the FAQSee what changed in each version

Open a support ticket

All help topics