From 5cc55e227815dbb9c466243f16d8358cfd845d82 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 24 Apr 2026 15:51:54 +0900 Subject: [PATCH] refac --- backend/open_webui/utils/middleware.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index fa6c65f36..813ced046 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -4658,6 +4658,7 @@ async def streaming_chat_response_handler(response, ctx): **form_data, 'model': model_id, 'stream': True, + 'metadata': metadata, } if ENABLE_RESPONSES_API_STATEFUL and last_response_id: @@ -4881,6 +4882,7 @@ async def streaming_chat_response_handler(response, ctx): **form_data, 'model': model_id, 'stream': True, + 'metadata': metadata, 'messages': [ *form_data['messages'], *convert_output_to_messages(output, raw=True),