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

@ -1,8 +1,16 @@
import { api } from './client'
export interface SummaryModelOption { id: string; provider: string; model: string; label?: string }
export interface PromptCapacity {
context_window_tokens: number
input_limit_tokens: number
output_reserve_tokens: number
token_count_method: string
framing_tokens: number
}
export interface SummaryModelOption { id: string; provider: string; model: string; label?: string; prompt_capacity?: PromptCapacity | null }
export interface UserPreferences {
summary_prompt_token_budget?: number
summary_model_id?: string | null
language: 'fr' | 'en'
ranking_mode: 'title' | 'title_content'