mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-17 12:25:53 +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 = {
|
tool = {
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"name": operation.get("operationId"),
|
"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": []},
|
"parameters": {"type": "object", "properties": {}, "required": []},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user