""" Configurazione dell'applicazione tramite variabili di ambiente """ from pydantic_settings import BaseSettings from typing import List class Settings(BaseSettings): """Configurazione dell'applicazione""" # Ollama OLLAMA_HOST: str = "http://localhost:11434" OLLAMA_TIMEOUT: int = 30 # API API_HOST: str = "0.0.0.0" API_PORT: int = 8000 API_WORKERS: int = 4 ENABLE_MODEL_RW_API: bool = False # CORS CORS_ORIGINS: str = "http://localhost:3000,http://localhost:5173,http://localhost:8000" # Logging LOG_LEVEL: str = "INFO" # Environment ENVIRONMENT: str = "development" class Config: env_file = ".env" env_file_encoding = "utf-8" # Istanza globale della configurazione settings = Settings()