mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
71625663c0
commit
9ea6cea0ba
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue