mirror of
https://github.com/open-webui/open-webui
synced 2025-05-29 17:52:48 +00:00
Merge remote-tracking branch 'upstream/dev' into dev
* upstream/dev: refac Fallback from desc to summary to placeholder
This commit is contained in:
commit
26e1bfc772
@ -337,7 +337,9 @@ def convert_openapi_to_tool_payload(openapi_spec):
|
||||
tool = {
|
||||
"type": "function",
|
||||
"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": []},
|
||||
}
|
||||
|
||||
|
@ -1153,7 +1153,7 @@ export const convertOpenApiToToolPayload = (openApiSpec) => {
|
||||
const tool = {
|
||||
type: 'function',
|
||||
name: operation.operationId,
|
||||
description: operation.summary || 'No description available.',
|
||||
description: operation.description || operation.summary || 'No description available.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {},
|
||||
|
Loading…
Reference in New Issue
Block a user