feat(ai): add personal summary models and retire Q&A
Add an admin-managed provider model catalog with per-user summary selection, migration backfill, and generation snapshots. Retire report creation and messaging while preserving owner-scoped history. Refs #15 #16 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
import { api } from './client'
|
||||
|
||||
export interface SummaryModelOption { id: string; provider: string; model: string; label?: string }
|
||||
|
||||
export interface UserPreferences {
|
||||
summary_model_id?: string | null
|
||||
language: 'fr' | 'en'
|
||||
ranking_mode: 'title' | 'title_content'
|
||||
}
|
||||
|
||||
export const preferencesApi = {
|
||||
listSummaryModels: () => api.get<SummaryModelOption[]>('/me/summary-models'),
|
||||
get: () => api.get<UserPreferences>('/me/preferences'),
|
||||
update: (preferences: UserPreferences) => api.put<UserPreferences>('/me/preferences', preferences),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user