refac/fix: tool payload

This commit is contained in:
Timothy Jaeryang Baek 2025-08-02 19:36:46 +04:00
parent f47a100730
commit 00084c6ca6
2 changed files with 0 additions and 2 deletions

View file

@ -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",

View file

@ -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: {