After the prompts fix, /dm/narrate reached the model call and failed with ConnectError: Connection refused — the container's localhost is not the host, so the default OLLAMA_BASE_URL=http://localhost:11434 hit nothing. Ollama runs on the host (M1's venv smoke reached it because uvicorn ran on the host too; the container never had a route). Add extra_hosts host.docker.internal:host-gateway so the container can reach the host, and document using http://host.docker.internal:11434 in .env.example. Verified a container reaches host Ollama's /api/tags (200). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.2 KiB
1.2 KiB