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


class Settings(BaseSettings):
    ollama_host: str
    model_name: str
    database_url: str
    ollama_timeout: int = 120
    system_prompt: str = "You are a professional chef assistant. You MUST respond with valid JSON only — no markdown, no explanation outside the JSON. You prioritize:\n1. Using ingredients that expire soonest\n2. Nutritional variety across the week\n3. Avoiding meals eaten in the past 7 days\n4. Practical home recipes under 60 minutes"

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


settings = Settings()