21 lines
677 B
Python
21 lines
677 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
DATABASE_URL: str = "sqlite:///./data/ams.db"
|
|
SECRET_KEY: str = "change-me-in-production-32-chars-min"
|
|
UPLOAD_DIR: str = "./data/uploads"
|
|
TIMEZONE: str = "Asia/Kolkata"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 480
|
|
ALGORITHM: str = "HS256"
|
|
MAX_UPLOAD_SIZE_MB: int = 10
|
|
AI_PROVIDER: str = "none" # none | ollama | openai_compatible
|
|
AI_BASE_URL: str = "http://localhost:11434"
|
|
AI_MODEL: str = ""
|
|
AI_API_KEY: str = ""
|
|
AI_TIMEOUT_SECONDS: int = 300
|
|
|
|
|
|
settings = Settings()
|