mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 14:04:04 +00:00
fix(bot): include all schema properties in required array for OpenAI Structured Outputs
This commit is contained in:
@@ -382,7 +382,20 @@ If user dismisses ("не, забей", "cancel"), use dismiss_workflow.`
|
|||||||
anyOf: [{ type: 'string' }, { type: 'null' }]
|
anyOf: [{ type: 'string' }, { type: 'null' }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['route', 'confidence', 'reason']
|
required: [
|
||||||
|
'route',
|
||||||
|
'replyText',
|
||||||
|
'clarificationQuestion',
|
||||||
|
'amountMinor',
|
||||||
|
'currency',
|
||||||
|
'itemDescription',
|
||||||
|
'amountSource',
|
||||||
|
'calculationExplanation',
|
||||||
|
'participantMemberIds',
|
||||||
|
'kind',
|
||||||
|
'confidence',
|
||||||
|
'reason'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user