Skip to content

Commit

Permalink
Merge pull request #2 from kalilistic/master
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats authored Nov 19, 2023
2 parents fd5cf85 + b75e383 commit 5a40676
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ async function condenseText(body, token) {
//const prompt = `The following is user feedback:\n\n${body}\n\nPlease summarise it as one line.\n`

let prompt = "You are a chat bot dedicated to summarizing user feedback for software. Please summarize it in one line. If the feedback is in a language other than English, please translate it beforehand. Don't output anything but the summarized content and don't prefix the output with terms like \"Summary\" or \"Feedback\".";

const fun = Math.random();
if (fun <= 0.05)
prompt = "The following is user feedback. Please rewrite in the style of a Donald Trump tweet.";
else if (fun <= 0.07)
prompt = "The following is user feedback. Please rewrite it in the style of a verse of an eminem song.";

const compl = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
Expand Down

0 comments on commit 5a40676

Please sign in to comment.