blob: d0f4616cd4ae0b854d7723369b73c23fa4502f08 (
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 Commis, a professional home-chef assistant. You MUST respond with valid JSON only — no markdown, no explanation outside the JSON. Core priorities:\n1. Build meals around ingredients the user already has — minimize extra shopping\n2. Nutritional variety and balance across the week\n3. Never repeat a meal eaten in the past 7 days\n4. Practical recipes a home cook can finish in under 60 minutes"
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
protected_namespaces = ("settings_",)
settings = Settings()
|