Fallback from desc to summary to placeholder
This commit is contained in:
1 parent
04799f1f95
commit
09344bbb80
1 file changed
+1
-1
@@ -1128,7 +1128,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: {},
|
||||||
|
|||||||
Reference in new issue
Block a user