{"repo": "0shivuurs6002/jeevantarang", "files": {"frontend/src/lib/config.js": {"af27da6252c0be49297e246fd3a8c3ca33d13573": {"t": 1786067405.1617668, "n": 2361, "h": "6c727b7e47590874", "c": "// Global configuration for API keys and settings (Vite uses import.meta.env)\nconst env = import.meta.env || {};\n\nexport const config = {\n // AI Services - Add your API keys here\n openai: {\n apiKey: env.VITE_OPENAI_API_KEY || 'your-openai-api-key-here',\n model: 'gpt-4'\n },\n gemini: {\n apiKey: env.VITE_GEMINI_API_KEY || 'your-gemini-api-key-here',\n model: 'gemini-pro'\n },\n deepseek: {\n apiKey: env.VITE_DEEPSEEK_API_KEY || 'your-deepseek-api-key-here',\n model: 'deepseek-chat'\n },\n\n // Firebase Configuration\n firebase: {\n apiKey: env.VITE_FIREBASE_API_KEY || 'your-firebase-api-key',\n authDomain: env.VITE_FIREBASE_AUTH_DOMAIN || 'your-project.firebaseapp.com',\n projectId: env.VITE_FIREBASE_PROJECT_ID || 'your-project-id',\n storageBucket: env.VITE_FIREBASE_STORAGE_BUCKET || 'your-project.appspot.com',\n messagingSenderId: env.VITE_FIREBASE_MESSAGING_SENDER_ID || '123456789',\n appId: env.VITE_FIREBASE_APP_ID || 'your-app-id'\n },\n\n // Real-time Mood Detection\n moodDetection: {\n enabled: true,\n updateInterval: 2000, // 2 seconds\n confidenceThreshold: 0.7,\n supportedEmotions: ['happy', 'sad', 'angry', 'surprised', 'neutral', 'fearful', 'disgusted']\n },\n\n // Supported Languages\n languages: [\n { code: 'en', name: 'English', flag: '🇺🇸' },\n { code: 'kn', name: 'ಕನ್ನಡ', flag: '🇮🇳' },\n { code: 'hi', name: 'हिंदी', flag: '🇮🇳' },\n { code: 'te', name: 'తెలుగు', flag: '🇮🇳' },\n { code: 'ta', name: 'தமிழ்', flag: '🇮🇳' }\n ],\n\n // Default settings\n defaults: {\n language: 'en',\n theme: 'light',\n moodDetectionEnabled: true,\n aiProvider: env.VITE_AI_PROVIDER || 'gemini',\n chatbotLanguageOverride: null // if set, chatbot replies in this language instead of UI language\n },\n\n // API Endpoints (also exported separately for convenience)\n endpoints: {\n // Prefer VITE_API_BASE; otherwise, default to same-origin\n // so dev uses Vite proxy (/api) and prod can be wired via env.\n base: env.VITE_API_BASE || (typeof window !== 'undefined' ? (window.location.origin) : 'http://localhost:5000'),\n auth: '/api/v1/auth',\n mood: '/api/v1/mood',\n chat: '/api/v1/chat',\n screening: '/api/v1/screening',\n appointments: '/api/v1/appointments',\n reports: '/api/v1/reports'\n }\n};\n\n// Back-compat named export\nexport const endpoints = config.endpoints;"}}}}