mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 16:14:02 +00:00
Refine topic context and purchase followup guards
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user