Skip to content

Commit

Permalink
fix: language constraint on + and - not respected
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Jan 14, 2025
1 parent 86b7daf commit 6483c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm-superset.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function summarize(input, options) {

async function makeLonger(input, options) {
const prompt =
"I'll give you text. You'll rewrite it and output it longer Keep the meaning the same as well as the language. Only give me the output and nothing else. Now, using the concepts above, re-write the following text. keep the input language the same, respond in the same language variety or dialect of the following text: \n\n" +
"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" +
input.text.trim();

const data = await callLLMapi(prompt, options);
Expand All @@ -112,7 +112,7 @@ async function makeLonger(input, options) {

async function makeShorter(input, options) {
const prompt =
"I'll give you text. You'll rewrite it and output it shorter to be no more than half the number of characters of the original text.Keep the meaning the same. Only give me the output and nothing else.Now, using the concepts above, re-write the following text. keep the input language the same, respond in the same language variety or dialect of the following text: \n\n" +
"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" +
input.text.trim();

const data = await callLLMapi(prompt, options);
Expand Down

0 comments on commit 6483c2f

Please sign in to comment.