summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-08 01:58:48 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-08 01:58:48 -0700
commit2e0a94e88c847a5ed8dc6ad5fa49715cd631bdfe (patch)
tree0c27fc5a8d8cbba60e571bb6690a13c0c0060ff4 /config.py
Initial commit — Commis personal chef app
AI-powered local chef tool: pantry tracking, meal logging, rotating weekly menu generation, and grocery list optimization via Ollama (llama3). FastAPI backend, SQLite, vanilla JS frontend. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'config.py')
-rw-r--r--config.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..8472e66
--- /dev/null
+++ b/config.py
@@ -0,0 +1,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()