mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
Merge pull request #12496 from dan-sullivan/fix-12479/add-desc-to-openapi-tools
fix: openapi tools should pass description to model not summary
This commit is contained in:
commit
71625663c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue