Timothy Jaeryang Baek 2 tháng trước cách đây
mục cha
commit
446f4ee5a8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      backend/open_webui/utils/tools.py

+ 2 - 0
backend/open_webui/utils/tools.py

@@ -520,6 +520,8 @@ async def get_tool_servers_data(
         openapi_data = response.get("openapi", {})
 
         if info and isinstance(openapi_data, dict):
+            openapi_data["info"] = openapi_data.get("info", {})
+
             if "name" in info:
                 openapi_data["info"]["title"] = info.get("name", "Tool Server")