diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index e65ff6a5b..76a2a0976 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -1056,4 +1056,5 @@ async def process_chat_response( return StreamingResponse( stream_wrapper(response.body_iterator, events), headers=dict(response.headers), + background=response.background, )