feat: chunking + progress bar
This commit is contained in:
parent
0277157919
commit
68391cf532
6 changed files with 339 additions and 17 deletions
|
@ -5,3 +5,13 @@ api_base: "https://api.openai.com" # OpenAI-compatible API base URL
|
|||
api_key: "your-api-key-here" # API key for the service
|
||||
model: "gpt-4o" # Model to use for translation
|
||||
system_prompt: "You are a professional translator. You are translating from $SOURCE_LANG to $TARGET_LANG. Maintain the original formatting and structure of the text while translating it accurately." # Custom system prompt with variables
|
||||
|
||||
# Concurrency settings
|
||||
concurrency: 3 # Number of concurrent translation tasks (default: 3)
|
||||
|
||||
# Chunked translation settings
|
||||
chunk:
|
||||
enabled: false # Whether to enable chunked translation (default: false)
|
||||
size: 10240 # Size of each chunk in tokens (default: 10240)
|
||||
prompt: "Please continue translation" # Prompt to use for continuing translation
|
||||
context: 2 # Number of chunks to include as context (default: 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue