Timothy Jaeryang Baek 2 周之前
父节点
当前提交
7be5b7f50f
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      backend/open_webui/utils/middleware.py

+ 4 - 2
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 = []