mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-16 23:35:57 +08:00
refac
This commit is contained in:
parent
71625663c0
commit
9ea6cea0ba
@ -337,7 +337,9 @@ def convert_openapi_to_tool_payload(openapi_spec):
|
||||
tool = {
|
||||
"type": "function",
|
||||
"name": operation.get("operationId"),
|
||||
"description": operation.get("summary", "No description available."),
|
||||
"description": operation.get(
|
||||
"description", operation.get("summary", "No description available.")
|
||||
),
|
||||
"parameters": {"type": "object", "properties": {}, "required": []},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user