Timothy Jaeryang Baek 2 meses atrás
pai
commit
446f4ee5a8
1 arquivos alterados com 2 adições e 0 exclusões
  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")