You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llm-superset.js
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ async function summarize(input, options) {
103
103
104
104
asyncfunctionmakeLonger(input,options){
105
105
constprompt=
106
-
"You are a highly skilled AI trained in language comprehension. I'll give you text, you'll rewrite and output a longerform. Keep the meaning and input language the same, only give me the output and nothing else. respond in the same language variety or dialect of the following text: \n\n"+
106
+
"You are a highly advanced AI with exceptional language comprehension skills. I will provide you with a piece of text, and your task will be to rewrite it into a longer, more detailed form. Ensure the original meaning is preserved and maintain the same language variety or dialect as the input. Your response should consist solely of the rewritten text, with no additional commentary or explanation: \n\n"+
107
107
input.text.trim();
108
108
109
109
constdata=awaitcallLLMapi(prompt,options);
@@ -112,19 +112,17 @@ async function makeLonger(input, options) {
112
112
113
113
asyncfunctionmakeShorter(input,options){
114
114
constprompt=
115
-
"You are a highly skilled AI trained in language comprehension. I'll give you text, you'll rewrite and output a shorter form. Keep the meaning and input language the same, only give me the output and nothing else. respond in the same language variety or dialect of the following text: \n\n"+
115
+
"You are a highly advanced AI with exceptional language comprehension skills. I will provide you with a piece of text, and your task will be to rewrite it into a short, less detailed form. Ensure the original meaning is preserved and maintain the same language variety or dialect as the input. Your response should consist solely of the rewritten text, with no additional commentary or explanation: \n\n"+
116
116
input.text.trim();
117
117
118
118
constdata=awaitcallLLMapi(prompt,options);
119
119
prepareResponse(data);
120
120
}
121
121
122
122
asyncfunctiontranslate(input,options){
123
-
constprompt=
124
-
"I will give you text content, you will translate the text into "+
125
-
options.tolang+
126
-
" language. Keep the meaning the same. Do not alter the original structure and formatting outlined in any way. Only give me the output and nothing else: \n\n"+
127
-
input.text.trim();
123
+
constprompt=`I will provide you with text content, and your task is to translate it into ${
124
+
options.tolang
125
+
} while preserving its original meaning. Maintain the exact structure and formatting of the original text without any alterations. Your response should consist solely of the translated content, with no additional commentary or explanation: ${input.text.trim()} `;
0 commit comments