From b01a129466b1e7d66e0dbb6d59edcb802c25978c Mon Sep 17 00:00:00 2001 From: whekin Date: Sat, 14 Mar 2026 15:04:13 +0400 Subject: [PATCH] fix(bot): include all schema properties in required array for OpenAI Structured Outputs --- apps/bot/src/topic-processor.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/bot/src/topic-processor.ts b/apps/bot/src/topic-processor.ts index 0f4e58a..8662669 100644 --- a/apps/bot/src/topic-processor.ts +++ b/apps/bot/src/topic-processor.ts @@ -382,7 +382,20 @@ If user dismisses ("не, забей", "cancel"), use dismiss_workflow.` anyOf: [{ type: 'string' }, { type: 'null' }] } }, - required: ['route', 'confidence', 'reason'] + required: [ + 'route', + 'replyText', + 'clarificationQuestion', + 'amountMinor', + 'currency', + 'itemDescription', + 'amountSource', + 'calculationExplanation', + 'participantMemberIds', + 'kind', + 'confidence', + 'reason' + ] } } }