forked from pluja/whishper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
28 lines (25 loc) · 1.3 KB
/
Copy pathexample.env
File metadata and controls
28 lines (25 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Libretranslate Configuration
## Check out https://github.com/LibreTranslate/LibreTranslate#configuration-parameters for more libretranslate configuration options
TRANSLATE_LANGUAGES=es,en,fr
LT_LOAD_ONLY=es,en,fr
# LLM subtitle translation configuration (OpenAI-compatible chat completions API)
# Examples:
# - Ollama: http://ollama:11434/v1/chat/completions
# - LM Studio: http://host.docker.internal:1234/v1/chat/completions
# - OpenAI-compatible provider: https://api.example.com/v1/chat/completions
LLM_TRANSLATION_ENDPOINT=
LLM_TRANSLATION_API_KEY=
LLM_TRANSLATION_MODEL=
LLM_TRANSLATION_TIMEOUT_SECONDS=120
LLM_TRANSLATION_CHUNK_SIZE=50
# LLM_TRANSLATION_CONCURRENCY=5 # max concurrent API calls (default 3, higher = faster parallel translation)
# LLM_TRANSLATION_MAX_RETRIES=5 # retry count for network errors, 429, and 5xx responses
# LLM_TRANSLATION_DEBUG_IO=true # log raw LLM request/response bodies; may include subtitle text and context
# LLM_TRANSLATION_SESSION_HISTORY_CHUNKS=1 # opt-in: reuse recent chunk translations as chat history; forces sequential chunk translation
# LLM_TRANSLATION_NO_TOOLS=true # set to "true" to disable function/tool calling
# Whisper Configuration
WHISPER_MODELS=tiny,small
WHISHPER_HOST=http://127.0.0.1:8082
# Database Configuration
DB_USER=whishper
DB_PASS=whishper