mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac/fix: tool payload
This commit is contained in:
parent
f47a100730
commit
00084c6ca6
2 changed files with 0 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue