Refine topic context and purchase followup guards

This commit is contained in:
2026-03-12 20:24:50 +04:00
parent 120c6cf96d
commit 401bbbdcca
8 changed files with 522 additions and 12 deletions

View File

@@ -54,6 +54,12 @@ describe('createOpenAiChatAssistant', () => {
expect(capturedBody!.model).toBe('gpt-5-mini')
expect(capturedBody!.input[0]?.role).toBe('system')
expect(capturedBody!.input[0]?.content).toContain('Default to one to three short sentences.')
expect(capturedBody!.input[0]?.content).toContain(
'Do not ask the user to repeat information that is already present in the provided conversation history.'
)
expect(capturedBody!.input[0]?.content).toContain(
'Treat wishes, plans, tomorrow-talk, approximate future prices, and thinking aloud as plans, not completed purchases or payments.'
)
expect(capturedBody!.input[0]?.content).toContain(
'There is no general feature for creating or scheduling arbitrary personal reminders'
)