gptrans 1.1.6 → 1.2.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/db/gptrans_ar.json +1 -1
- package/index.js +1 -2
- package/package.json +2 -2
package/db/gptrans_ar.json
CHANGED
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import DeepBase from 'deepbase';
|
|
|
2
2
|
import stringHash from 'string-hash';
|
|
3
3
|
import { ModelMix, MixOpenAI, MixAnthropic } from 'modelmix';
|
|
4
4
|
import dotenv from 'dotenv';
|
|
5
|
-
import path from 'path';
|
|
6
5
|
|
|
7
6
|
import { isoAssoc } from './isoAssoc.js';
|
|
8
7
|
dotenv.config();
|
|
@@ -39,7 +38,7 @@ class Gptrans {
|
|
|
39
38
|
this.pendingCharCount = 0; // Add character count tracker
|
|
40
39
|
this.debounceTimer = null;
|
|
41
40
|
this.modelKey = model;
|
|
42
|
-
this.promptFile
|
|
41
|
+
this.promptFile = promptFile ?? new URL('./prompt/translate.md', import.meta.url).pathname;
|
|
43
42
|
this.context = context;
|
|
44
43
|
this.modelConfig = {
|
|
45
44
|
config: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gptrans",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "🚆 GPTrans - The smarter AI-powered way to translate.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"translate",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"deepbase": "^1.3.2",
|
|
35
35
|
"dotenv": "^16.4.7",
|
|
36
|
-
"modelmix": "^2.
|
|
36
|
+
"modelmix": "^2.9.0",
|
|
37
37
|
"string-hash": "^1.1.3"
|
|
38
38
|
}
|
|
39
39
|
}
|