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.
---
<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/20587
**Author:** [@akraines](https://github.com/akraines)
**Created:** 1/11/2026
**Status:** ❌ Closed
**Base:** `main` ← **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
## Title
feat: Add DEFAULT_STREAM_RESPONSE environment variable
## 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.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20587
Author: @akraines
Created: 1/11/2026
Status: ❌ Closed
Base:
main← Head:feature/default-stream-response-env-v2📝 Commits (1)
efb40b1feat: 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
Title
feat: Add DEFAULT_STREAM_RESPONSE environment variable
Description
Adds
DEFAULT_STREAM_RESPONSEenvironment variable to control default streaming behavior at deployment level.Changelog
Added
DEFAULT_STREAM_RESPONSEenvironment variable (defaults totrue)backend/open_webui/config.pysrc/lib/components/chat/Chat.svelteChanged
$config?.default_stream_responsebefore hardcoded defaultUsage