From 7be5b7f50f498de97359003609fc5993a172f084 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 18 Sep 2025 22:03:14 -0500 Subject: [PATCH] refac --- backend/open_webui/utils/middleware.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 0cd593de11..e14729451b 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -2426,13 +2426,15 @@ async def process_chat_response( tool_result_embeds.append(tool_result) tool_result = { "status": "success", - "message": "Displayed as embed", + "code": "ui_component", + "message": "Embedded UI result is active and visible to the user.", } elif location: tool_result_embeds.append(location) tool_result = { "status": "success", - "message": "Displayed as embed", + "code": "ui_component", + "message": "Embedded UI result is active and visible to the user.", } tool_result_files = []