File size: 741 Bytes
f37bf1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# api/config.py
import os
import logging
from typing import Optional

# Setup logging
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)


class Settings:
    """Application settings"""
    APP_TITLE: str = "Legal Assistant API"
    APP_VERSION: str = "2.0.0"
    APP_DESCRIPTION: str = "Multi-country legal RAG with streaming & human-in-the-loop"
    
    # CORS
    CORS_ORIGINS: list = ["*"]
    
    # API Settings
    STREAM_DELAY: float = 0.02  # Delay between tokens in streaming
    
    # System
    chat_manager: Optional[object] = None
    graph: Optional[object] = None
    system_initialized: bool = False


settings = Settings()