From f361e7599d9a11ad3397b7b6bffee151ab9bdde9 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Fri, 8 May 2026 02:16:19 -0700 Subject: Fix startup error and improve category dropdown readability - Give ollama_timeout a default of 120s so the app starts without it in .env - Style select option elements to match dark theme, fixing low contrast in dropdown Co-Authored-By: Claude Sonnet 4.6 --- .env.example | 3 +++ config.py | 2 +- static/style.css | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d3cb4e2 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +OLLAMA_HOST=http://localhost:11434 +MODEL_NAME=gemma4:latest +DATABASE_URL=sqlite:///./chef.db diff --git a/config.py b/config.py index 8472e66..1f06627 100644 --- a/config.py +++ b/config.py @@ -5,7 +5,7 @@ class Settings(BaseSettings): ollama_host: str model_name: str database_url: str - ollama_timeout: int + ollama_timeout: int = 120 class Config: env_file = ".env" diff --git a/static/style.css b/static/style.css index 18908c7..9d90898 100644 --- a/static/style.css +++ b/static/style.css @@ -197,6 +197,11 @@ main { background-color: rgba(108, 99, 255, 0.05); } +.form-group select option { + background-color: var(--surface2); + color: var(--text); +} + .form-actions { display: flex; gap: 1rem; -- cgit v1.3-2-g0d8e