feat(generation): score articles with selected relevance model (#48)
This commit is contained in:
@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user