From 117c091b95a1b1a76a31c31b97304bac289d6f18 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 1 Feb 2026 20:07:11 -0600 Subject: [PATCH] refac --- backend/open_webui/utils/middleware.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index af6e2968f..385bc30a9 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -391,7 +391,6 @@ def serialize_output(output: list) -> str: else: content = f'{content}
\nThinking…\n{display}\n
\n' - elif item_type == "open_webui:code_interpreter": content_stripped, original_whitespace = split_content_and_whitespace( content @@ -3484,9 +3483,6 @@ async def process_chat_response( ) # Check for Responses API events (type field starts with "response.") elif data.get("type", "").startswith("response."): - - print(data) - output, response_metadata = ( handle_responses_streaming_event(data, output) ) @@ -3496,7 +3492,8 @@ async def process_chat_response( "content": serialize_output(output), } - print(processed_data) + # print(data) + # print(processed_data) # Merge any metadata (usage, done, etc.) if response_metadata: