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 +1 -1
- package/lib/src/translate.js +11 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/translate.js
CHANGED
@@ -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
|
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,
|