Browse Source

refac/fix: tool payload

Timothy Jaeryang Baek 2 months ago
parent
commit
00084c6ca6
2 changed files with 0 additions and 2 deletions
  1. 0 1
      backend/open_webui/utils/tools.py
  2. 0 1
      src/lib/utils/index.ts

+ 0 - 1
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",

+ 0 - 1
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: {