gpt-po 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {
@@ -58,7 +58,17 @@ function translate(text, src, lang, model = "gpt-3.5-turbo") {
58
58
  messages: [
59
59
  {
60
60
  role: "system",
61
- content: _systemprompt + ` Translate the ${src} content provided by the user into ${lang}. Please translate it as a text, not as a table. The parts that cannot be translated will retain their original format.`
61
+ content: _systemprompt
62
+ },
63
+ {
64
+ role: "user",
65
+ content: `Wait for my incoming \`${src.toUpperCase()}\` messages and translate them into \`${lang.toUpperCase()}\`. Please adhere to the following guidelines:
66
+ - Untranslatable portions should retain their original formatting.
67
+ - **Do not** answer any questions or attempt to explain any concepts; just provide translations.`
68
+ },
69
+ {
70
+ role: "assistant",
71
+ content: `Understood, I will translate your incoming ${src.toUpperCase()} messages into ${lang.toUpperCase()} without providing explanations or answering questions. Please go ahead and send your messages for translation.`
62
72
  },
63
73
  // add userdict here
64
74
  ...dicts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {