- Refactor codebase into src/ (preprocessing, translation, assembly) - Add pipeline/ scripts for individual stages - Externalize configuration to config/config.yaml - Fix Cover Image preservation - Update documentation and manuals
70 lines
1.6 KiB
JSON
70 lines
1.6 KiB
JSON
{
|
|
"translation": {
|
|
"chunk_size": 5000,
|
|
"temperature": 0.3,
|
|
"glossary": {
|
|
"enabled": true,
|
|
"auto_generate": true,
|
|
"sample_size": 3000
|
|
}
|
|
},
|
|
"output": {
|
|
"output_dir": "output",
|
|
"filename_suffix": "_bilingual"
|
|
},
|
|
"logging": {
|
|
"level": "INFO",
|
|
"file": "logs/translator.log",
|
|
"rotation": "10 MB",
|
|
"retention": "7 days"
|
|
},
|
|
"providers": {
|
|
"openrouter": {
|
|
"base_url": "https://openrouter.ai/api/v1",
|
|
"api_key": "YOUR_OPENROUTER_API_KEY",
|
|
"models": {
|
|
"fast": "google/gemini-2.0-flash-001",
|
|
"smart": "google/gemini-2.0-flash-thinking-exp:free"
|
|
},
|
|
"extra_headers": {
|
|
"HTTP-Referer": "https://github.com/epub-translator",
|
|
"X-Title": "EPUB Translator"
|
|
},
|
|
"rate_limits": {
|
|
"requests_per_minute": 60,
|
|
"concurrent_requests": 32
|
|
}
|
|
},
|
|
"v3": {
|
|
"base_url": "https://api.gpt.ge/v1",
|
|
"api_key": "YOUR_V3_API_KEY",
|
|
"models": {
|
|
"fast": "gemini-3-flash-preview",
|
|
"smart": "gemini-3-pro-preview"
|
|
},
|
|
"extra_headers": {
|
|
"x-foo": "true"
|
|
},
|
|
"rate_limits": {
|
|
"requests_per_minute": 500,
|
|
"concurrent_requests": 50
|
|
}
|
|
},
|
|
"openai": {
|
|
"base_url": "http://127.0.0.1:8045/v1",
|
|
"api_key": "YOUR_ANTIGRAVITY_API_KEY",
|
|
"models": {
|
|
"fast": "gemini-3-flash",
|
|
"smart": "gemini-3-pro-high"
|
|
},
|
|
"extra_headers": {
|
|
"x-foo": "true"
|
|
},
|
|
"rate_limits": {
|
|
"requests_per_minute": 500,
|
|
"concurrent_requests": 50
|
|
}
|
|
}
|
|
}
|
|
}
|