feat(summary): send complete articles within user budget (#39)

This commit is contained in:
2026-11-24 17:39:26 +01:00
parent d0c7cb7cae
commit 79953ce49f
73 changed files with 1688 additions and 288 deletions

View File

@ -49,7 +49,7 @@ describe('choix personnel du modèle de synthèse — ticket #14', () => {
expect(screen.getByRole('option', { name: 'Ollama · qwen-summary' })).toBeInTheDocument()
await user.selectOptions(selector, 'model-b')
await user.click(screen.getByRole('button', { name: 'Enregistrer' }))
expect(updatePreferences).toHaveBeenCalledWith({ language: 'fr', ranking_mode: 'title_content', summary_model_id: 'model-b' })
expect(updatePreferences).toHaveBeenCalledWith({ language: 'fr', ranking_mode: 'title_content', summary_model_id: 'model-b', summary_prompt_token_budget: 250000 })
expect(listSummaryModels).toHaveBeenCalledOnce()
})