-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivesub.toml.example
More file actions
45 lines (42 loc) · 1.7 KB
/
Copy pathlivesub.toml.example
File metadata and controls
45 lines (42 loc) · 1.7 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Optional config: define custom translation backends in addition to the
# built-ins (Claude Haiku/Sonnet/Opus, DeepSeek Flash, Gemini, none).
#
# Copy this to `livesub.toml` (same directory as .env) and edit. The file
# is optional — without it, only built-ins show up. Restart the server
# after editing.
#
# Schema for each [[translate]] entry:
# id required unique identifier (used in WS config + localStorage)
# label required display name in the dropdown
# sdk required "anthropic" or "openai" — picks the client library
# model required model id passed to the SDK
# api_key_env optional env var to read for the API key. Omit for keyless
# backends (ollama, lm-studio without auth).
# base_url optional override the SDK's default endpoint. Required for
# local OpenAI-compat servers and routing services.
#
# Tip: keep secrets in .env; this file only references env var names.
# Local LLM via Ollama (offline-capable). Pull a model first:
# ollama pull qwen2.5:14b
[[translate]]
id = "local-qwen"
label = "Local Qwen 14B (Ollama)"
sdk = "openai"
model = "qwen2.5:14b"
base_url = "http://localhost:11434/v1"
# api_key_env intentionally omitted — Ollama doesn't require auth
# OpenAI direct (uses OPENAI_API_KEY from .env)
[[translate]]
id = "gpt-5-mini"
label = "GPT-5 Mini"
sdk = "openai"
model = "gpt-5-mini"
api_key_env = "OPENAI_API_KEY"
# Routing service example (OpenRouter speaks OpenAI protocol)
# [[translate]]
# id = "openrouter-sonnet"
# label = "Sonnet via OpenRouter"
# sdk = "openai"
# model = "anthropic/claude-sonnet-4-6"
# base_url = "https://openrouter.ai/api/v1"
# api_key_env = "OPENROUTER_API_KEY"