[PR #20589] [CLOSED] feat: Add DEFAULT_STREAM_RESPONSE environment variable #64547

Closed
opened 2026-05-06 10:09:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20589
Author: @akraines
Created: 1/11/2026
Status: Closed

Base: devHead: feature/default-stream-response-env-v2


📝 Commits (1)

  • efb40b1 feat: Add DEFAULT_STREAM_RESPONSE environment variable

📊 Changes

2 files changed (+7 additions, -0 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 src/lib/components/chat/Chat.svelte (+1 -0)

📄 Description

Description

Adds DEFAULT_STREAM_RESPONSE environment variable to control default streaming behavior at deployment level.

Changelog

Added

  • DEFAULT_STREAM_RESPONSE environment variable (defaults to true)
  • PersistentConfig in backend/open_webui/config.py
  • Config fallback in src/lib/components/chat/Chat.svelte

Changed

  • Streaming logic now checks $config?.default_stream_response before hardcoded default

Usage

DEFAULT_STREAM_RESPONSE=false


Testing
 Defaults to true (backward compatible)
 User/model settings override the default
 Config properly loaded to frontend
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Actually I see someone else made a very similar pr recently https://github.com/open-webui/open-webui/pull/18764

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20589 **Author:** [@akraines](https://github.com/akraines) **Created:** 1/11/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/default-stream-response-env-v2` --- ### 📝 Commits (1) - [`efb40b1`](https://github.com/open-webui/open-webui/commit/efb40b1880976453c8a95b7e0f7f1f77a6ab654c) feat: Add DEFAULT_STREAM_RESPONSE environment variable ### 📊 Changes **2 files changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `src/lib/components/chat/Chat.svelte` (+1 -0) </details> ### 📄 Description ## Description Adds `DEFAULT_STREAM_RESPONSE` environment variable to control default streaming behavior at deployment level. ## Changelog ### Added - `DEFAULT_STREAM_RESPONSE` environment variable (defaults to `true`) - PersistentConfig in `backend/open_webui/config.py` - Config fallback in `src/lib/components/chat/Chat.svelte` ### Changed - Streaming logic now checks `$config?.default_stream_response` before hardcoded default ## Usage ```bash DEFAULT_STREAM_RESPONSE=false Testing Defaults to true (backward compatible) User/model settings override the default Config properly loaded to frontend Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms. Actually I see someone else made a very similar pr recently https://github.com/open-webui/open-webui/pull/18764 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 10:09:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#64547