Skip to content

Commit f77f11e

Browse files
committed
adjust the maximize prompt
1 parent 6483c2f commit f77f11e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

llm-superset.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function summarize(input, options) {
103103

104104
async function makeLonger(input, options) {
105105
const prompt =
106-
"You are a highly skilled AI trained in language comprehension. I'll give you text, you'll rewrite and output a longer 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" +
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" +
107107
input.text.trim();
108108

109109
const data = await callLLMapi(prompt, options);
@@ -112,19 +112,17 @@ async function makeLonger(input, options) {
112112

113113
async function makeShorter(input, options) {
114114
const prompt =
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" +
116116
input.text.trim();
117117

118118
const data = await callLLMapi(prompt, options);
119119
prepareResponse(data);
120120
}
121121

122122
async function translate(input, options) {
123-
const prompt =
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+
const prompt = `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()} `;
128126

129127
const data = await callLLMapi(prompt, options);
130128
prepareResponse(data);

0 commit comments

Comments
 (0)