Files
local-translator/config.example.toml
mrleo1nidandClaude Sonnet 5.5 f49ee90477 feat: browser access (allowed_origins, CORS with Private Network Access), job cancel, Tomie/Unity adapters, benchmark
Includes earlier uncommitted work: Tomie and Unity adapters, benchmark, structured output, call metrics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 18:59:28 +03:00

37 lines
1.1 KiB
TOML

# Copy to config.toml. Relative paths are resolved from this file's directory.
database = "data/translations.sqlite3"
port = 8787
# Sites allowed to call this API from the browser (the games library page).
# Exact origins only, no wildcard. Restart after changing.
allowed_origins = []
# allowed_origins = ["https://games.example", "http://localhost:5173"]
[providers.lmstudio]
base_url = "http://127.0.0.1:1234/v1"
# Empty: automatically select the model only when /models returns exactly one.
model = ""
api_key_env = "LM_STUDIO_API_KEY"
timeout = 180
prompt_style = "hy_mt"
structured_output = true
# Tencent's recommended sampling parameters for HY-MT2-7B.
temperature = 0.7
top_p = 0.6
top_k = 20
repetition_penalty = 1.05
max_tokens = 4096
# Enable after installing LM Studio and making lms available in PATH.
autostart = false
startup_timeout = 90
# Optional downloaded model to load with `lms load` during startup.
load_model = ""
load_context_length = 8192
[providers.openrouter]
base_url = "https://openrouter.ai/api/v1"
model = ""
api_key_env = "OPENROUTER_API_KEY"
timeout = 180
temperature = 0.2
max_tokens = 4096