Refactor LLM API key handling for Ollama

The LLM client now conditionally adds the `Authorization` header only
when an API key is provided. The `llm_configured` check is updated to
reflect that an API key is not strictly required for Ollama-style
endpoints. A new integration test verifies the functionality against an
Ollama-compatible endpoint without an API key.
This commit is contained in:
2026-04-16 14:19:43 +02:00
parent 144d1f768b
commit 3a656bd2a9
4 changed files with 116 additions and 12 deletions
+13
View File
@@ -0,0 +1,13 @@
services:
doctate-whisper:
image: doctate-whisper:latest
container_name: doctate-whisper
environment:
- WHISPER_MODEL=large-v3
- WHISPER_DEVICE=cpu
- WHISPER_COMPUTE_TYPE=int8
volumes:
- /opt/stacks/doctate-whisper/models:/models
ports:
- "9001:9001"
restart: unless-stopped