gptrans 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -17,7 +17,6 @@ class GPTrans {
|
|
|
17
17
|
if (!this.#mmixInstances.has(key)) {
|
|
18
18
|
let instance = ModelMix.new({
|
|
19
19
|
config: {
|
|
20
|
-
max_history: 1,
|
|
21
20
|
debug,
|
|
22
21
|
bottleneck: {
|
|
23
22
|
minTime: 15000,
|
|
@@ -31,7 +30,7 @@ class GPTrans {
|
|
|
31
30
|
if (typeof instance[model] !== 'function') {
|
|
32
31
|
throw new Error(
|
|
33
32
|
`Model "${model}" is not available. Please check the model name. ` +
|
|
34
|
-
`Available models include:
|
|
33
|
+
`Available models include: gpt51, gpt52, sonnet46, sonnet45, opus46, haiku45, etc.`
|
|
35
34
|
);
|
|
36
35
|
}
|
|
37
36
|
instance = instance[model]();
|
|
@@ -64,7 +63,7 @@ class GPTrans {
|
|
|
64
63
|
return isLanguageAvailable(langCode);
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
constructor({ from = 'en-US', target = 'es', model = '
|
|
66
|
+
constructor({ from = 'en-US', target = 'es', model = 'sonnet46', batchThreshold = 1500, debounceTimeout = 500, promptFile = null, name = '', context = '', instruction = '', freeze = false, debug = false } = {}) {
|
|
68
67
|
|
|
69
68
|
target = this.normalizeBCP47(target);
|
|
70
69
|
from = this.normalizeBCP47(from);
|