mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
093acb3724
commit
446f4ee5a8
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue