mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge branch 'dev' of github.com:taylorwilsdon/open-webui into dev
This commit is contained in:
commit
0a2747bc6a
@ -337,7 +337,9 @@ def convert_openapi_to_tool_payload(openapi_spec):
|
|||||||
tool = {
|
tool = {
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"name": operation.get("operationId"),
|
"name": operation.get("operationId"),
|
||||||
"description": operation.get("summary", "No description available."),
|
"description": operation.get(
|
||||||
|
"description", operation.get("summary", "No description available.")
|
||||||
|
),
|
||||||
"parameters": {"type": "object", "properties": {}, "required": []},
|
"parameters": {"type": "object", "properties": {}, "required": []},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1153,7 +1153,7 @@ export const convertOpenApiToToolPayload = (openApiSpec) => {
|
|||||||
const tool = {
|
const tool = {
|
||||||
type: 'function',
|
type: 'function',
|
||||||
name: operation.operationId,
|
name: operation.operationId,
|
||||||
description: operation.summary || 'No description available.',
|
description: operation.description || operation.summary || 'No description available.',
|
||||||
parameters: {
|
parameters: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {},
|
properties: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user