summaryrefslogtreecommitdiff
path: root/config.py
blob: 8472e66236f1ca3a94e8814c55fd4158bf3f6395 (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

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


settings = Settings()