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:
Timothy Jaeryang Baek 2025-04-05 15:30:19 -06:00 committed by GitHub
commit 71625663c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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