From 9ea6cea0baa7b2eab23c3b4db3b03a7afe811da4 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 5 Apr 2025 14:31:22 -0700 Subject: [PATCH] refac --- backend/open_webui/utils/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 60311a690..734c23e1b 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -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": []}, }