Timothy Jaeryang Baek 2 months ago
parent
commit
446f4ee5a8
1 changed files with 2 additions and 0 deletions
  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")