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:
@@ -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
|
||||
Reference in New Issue
Block a user