gptrans 2.0.10 → 2.1.0

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/README.md CHANGED
@@ -236,7 +236,7 @@ GPTrans supports a fallback mechanism for translation models. Instead of providi
236
236
 
237
237
  ```javascript
238
238
  const translator = new GPTrans({
239
- model: ['claude37', 'gpt41'],
239
+ model: ['claude46', 'gpt54'],
240
240
  // ... other options
241
241
  });
242
242
  ```
package/demo/case_1.js CHANGED
@@ -16,7 +16,7 @@ console.log(gptrans.t('Card'));
16
16
  const es2ar = new GPTrans({
17
17
  from: 'es-ES',
18
18
  target: 'es-AR',
19
- model: 'sonnet37'
19
+ model: 'sonnet46'
20
20
  });
21
21
 
22
22
  console.log(es2ar.t('Eres muy bueno'));
package/demo/case_4.js CHANGED
@@ -8,7 +8,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
8
8
 
9
9
  // Initialize translator
10
10
  const model = new GPTrans({
11
- model: ['sonnet37', 'gpt41'],
11
+ model: ['sonnet46', 'gpt54'],
12
12
  from: 'es', // Assuming the source file is in Spanish
13
13
  target: 'en',
14
14
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gptrans",
3
3
  "type": "module",
4
- "version": "2.0.10",
4
+ "version": "2.1.0",
5
5
  "description": "🚆 GPTrans - The smarter AI-powered way to translate.",
6
6
  "keywords": [
7
7
  "translate",
@@ -40,7 +40,7 @@
40
40
  "dotenv": "^16.4.7",
41
41
  "form-data": "^4.0.4",
42
42
  "genmix": "^1.0.4",
43
- "modelmix": "^4.3.6",
43
+ "modelmix": "^4.4.20",
44
44
  "string-hash": "^1.1.3"
45
45
  }
46
46
  }