feat(generation): score articles with selected relevance model (#48)

This commit is contained in:
2026-11-25 18:09:36 +01:00
parent c5b8d0d4da
commit 90dd2a65d2
53 changed files with 1639 additions and 105 deletions

View File

@ -7,7 +7,7 @@ import { GenerationDetails } from '../src/components/GenerationDetails'
import type { GenerationOutcome } from '../src/api/summaries'
const { get, update, listSummaryModels } = vi.hoisted(() => ({ get: vi.fn(), update: vi.fn(), listSummaryModels: vi.fn() }))
vi.mock('@/api/preferences', () => ({ preferencesApi: { get, update, listSummaryModels } }))
vi.mock('@/api/preferences', () => ({ preferencesApi: { listRankingModels: vi.fn().mockResolvedValue([]), get, update, listSummaryModels } }))
vi.mock('@/components/Appearance', () => ({ Appearance: () => null }))
const profile = { context_window_tokens: 128000, input_limit_tokens: 128000, output_reserve_tokens: 4096, framing_tokens: 1024, token_count_method: 'utf8_bytes_upper_bound_v1' }
const preferences = { language: 'fr', ranking_mode: 'title_content', summary_model_id: 'a', summary_prompt_token_budget: 250000 }