Преглед изворни кода

Merge pull request #12496 from dan-sullivan/fix-12479/add-desc-to-openapi-tools

fix: openapi tools should pass description to model not summary
Timothy Jaeryang Baek пре 4 месеци
родитељ
комит
71625663c0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/lib/utils/index.ts

+ 1 - 1
src/lib/utils/index.ts

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