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

@ -8,8 +8,8 @@ afterEach(() => {
it('charge et sauvegarde les préférences du compte via GET et PUT /api/me/preferences', async () => {
localStorage.setItem('token', 'user-token')
const initial = { language: 'fr', ranking_mode: 'title' }
const updated = { language: 'en' as const, ranking_mode: 'title_content' as const }
const initial = { language: 'fr', ranking_mode: 'title', summary_prompt_token_budget: 250000 }
const updated = { language: 'en' as const, ranking_mode: 'title_content' as const, summary_prompt_token_budget: 80000 }
const fetchMock = vi.fn()
.mockResolvedValueOnce(new Response(JSON.stringify({ data: initial }), { status: 200 }))
.mockResolvedValueOnce(new Response(JSON.stringify({ data: updated }), { status: 200 }))