From 8745f5ad01102c3db900f00b93b74af3b6784cf5 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Aug 2026 15:40:38 +0000 Subject: [PATCH] Correct stale Mealie vision-import guidance in ai-stack.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old note pointed at an OPENAI_MODEL env var for Mealie's "import recipe from photo" feature. Checked against docs.mealie.io directly: Mealie moved AI provider config off env vars entirely — it's a live Group Settings > AI Providers UI setting now (base_url/api_key/model, with a separate toggle for which provider handles image recognition). Also spells out how to actually reach this stack's Ollama from Mealie's separate compose project (host-published port, not a shared network). --- services/ai-stack.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/services/ai-stack.md b/services/ai-stack.md index 063b136..da6ae24 100644 --- a/services/ai-stack.md +++ b/services/ai-stack.md @@ -53,11 +53,30 @@ docker exec ollama ollama pull moondream # or llava:7b / qwen2.5vl:7b / llama3 | `qwen2.5vl:7b` | ~6 GB | Stronger accuracy, needs more RAM/VRAM. | | `llama3.2-vision:11b` | ~7.9 GB | Meta's vision model — heaviest of these four. | -Point any OpenAI-compatible app's vision/image-import feature (e.g. Mealie's -"import recipe from photo") at this stack's Ollama endpoint with the pulled -model as `OPENAI_MODEL` — see Open WebUI → Settings → Connections for the -exact local base URL, or `docker inspect ollama` for the container's address -on `caddy_net`/the compose network. +Point any OpenAI-compatible app's vision/image-import feature at this stack's +Ollama endpoint with the pulled model. For Mealie's "import recipe from +photo" specifically — checked against docs.mealie.io directly, since Mealie +moved this off env vars at some point and old `OPENAI_*` env var guidance +for it is now stale: it's configured live in the UI, not `.env` — +**Group Settings → AI Providers** in Mealie itself, not this stack's +`.env` or `docker-compose.yml`. Add a provider with: +- `base_url`: `http://host.docker.internal:11434/v1` (Ollama publishes on + the host at `0.0.0.0:11434`, and Mealie is a separate compose project + not sharing a network with this stack, so it has to be reached over the + host the same way Caddy reaches bridge-mode services — see Mealie's own + compose: add `extra_hosts: ["host.docker.internal:host-gateway"]` to its + `mealie:` service if that hostname doesn't already resolve there. The + host's real LAN IP works too with no compose edit, just less stable + across DHCP renewals.) +- `api_key`: any non-empty placeholder — required by Mealie's form, ignored + by Ollama. +- model: the vision model just pulled (e.g. `moondream`). + +Then mark that provider as the one used for image recognition (a separate +toggle from the general default-provider setting) — that's what actually +turns on the photo-import feature. No Mealie container restart needed, it +applies live. See Open WebUI → Settings → Connections if you'd rather +confirm the local base URL/model name there first. ## Cloud LLM providers (Open WebUI) Open WebUI uses an OpenAI-compatible connection list. The local RAG server is the