diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index bd5be1f8e3..aaec1998b3 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -377,7 +377,6 @@ def convert_openapi_to_tool_payload(openapi_spec): for method, operation in methods.items(): if operation.get("operationId"): tool = { - "type": "function", "name": operation.get("operationId"), "description": operation.get( "description", diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 21f15ca292..2ee3781019 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -1320,7 +1320,6 @@ export const convertOpenApiToToolPayload = (openApiSpec) => { for (const [method, operation] of Object.entries(methods)) { if (operation?.operationId) { const tool = { - type: 'function', name: operation.operationId, description: operation.description || operation.summary || 'No description available.', parameters: {