summaryrefslogtreecommitdiff
path: root/config.py
blob: 1f066276124a71558e68015ae0b27ec775625955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    ollama_host: str
    model_name: str
    database_url: str
    ollama_timeout: int = 120

    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"
        protected_namespaces = ("settings_",)


settings = Settings()