From 00084c6ca6ee8e379a502799e4c32c708987f190 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 2 Aug 2025 19:36:46 +0400 Subject: [PATCH] refac/fix: tool payload --- backend/open_webui/utils/tools.py | 1 - src/lib/utils/index.ts | 1 - 2 files changed, 2 deletions(-) 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: {