File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
1
API_KEY =
2
- AI_MODEL = gpt-4o
3
- # maximum number of characters to be sent for translation per batch
4
- MAX_LEN = 2000
5
- # Optional
2
+
3
+ # Model to be used for translation
4
+ # ensure that selected assistant supports file search API
5
+ # models that are tried and shown to work includes: o3-mini, 4o and 4o mini
6
+ AI_MODEL = gpt-4.1-nano
7
+
8
+ # maximum number of characters to be sent for translation per batch, default: 3000
9
+ # smaller number of characters could lead to greater translation quality
10
+ # but worse continuity
11
+ MAX_LEN = 5000
12
+
13
+ # Optional, only specify if calling alternative LLM provider
14
+ # Note: We require the Assistant API which only OpenAI provides as of 13 April 2025
6
15
AI_BASEURL =
16
+
7
17
# maximum number of concurent translations that are allowed
8
- MAX_TRANSLATION_NO = 10
18
+ # if unspecified default to 5
19
+ MAX_TRANSLATION_NO = 10
20
+
21
+ # Number of previous messages to be referred to in a thread for LLM Translation, if unspecified, default to 3
22
+ # Higher context size might lead to greater continuity in translation but higher cost and lower speed.
23
+ CONTEXT = 3
24
+
25
+ # Number of token per query which when exceeded will log an error
26
+ # Formula to derive an adequate value: MAX_LEN * CONTEXT * k, where k is a constant
27
+ # Recommended k = 1.5
28
+ TOKEN_WARNING = 7000
You can’t perform that action at this time.
0 commit comments