/** * Application Configuration * * Централизованная конфигурация приложения. */ // API Configuration export const API_CONFIG = { baseURL: '/api/v1', timeout: 1800000 // 30 minutes in milliseconds } // UI Configuration export const UI_CONFIG = { defaultQueryMode: 'questions', defaultWithDocs: true, maxAnnotationLength: 5000 } // Storage Keys export const STORAGE_KEYS = { token: 'briefBenchToken', user: 'briefBenchUser', settings: 'briefBenchSettings', envData: (env) => `briefBenchData_${env}`, annotations: 'briefBenchAnnotationsDraft' } // Constants export const ENVIRONMENTS = ['ift', 'psi', 'prod'] export const API_MODES = ['bench', 'backend'] // Environment Names export const ENV_NAMES = { ift: 'ИФТ', psi: 'ПСИ', prod: 'ПРОМ' } // Annotation Issue Types export const ANNOTATION_ISSUES = [ 'factual_error', 'inaccurate_wording', 'insufficient_context', 'offtopic', 'technical_answer' ] // Rating Values export const RATING_VALUES = { CORRECT: 'correct', PARTIAL: 'partial', INCORRECT: 'incorrect' }