Initial local translation API with persistent projects and batch jobs
This commit is contained in:
commit
13492929c6
21 files changed
+1624
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Copy to config.toml. Relative paths are resolved from this file's directory.
|
||||
database = "data/translations.sqlite3"
|
||||
port = 8787
|
||||
|
||||
[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"
|
||||
# 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
|
||||
Reference in new issue
Block a user