mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -520,6 +520,8 @@ async def get_tool_servers_data(
|
|||||||
openapi_data = response.get("openapi", {})
|
openapi_data = response.get("openapi", {})
|
||||||
|
|
||||||
if info and isinstance(openapi_data, dict):
|
if info and isinstance(openapi_data, dict):
|
||||||
|
openapi_data["info"] = openapi_data.get("info", {})
|
||||||
|
|
||||||
if "name" in info:
|
if "name" in info:
|
||||||
openapi_data["info"]["title"] = info.get("name", "Tool Server")
|
openapi_data["info"]["title"] = info.get("name", "Tool Server")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user