Skip to content

Commit

Permalink
adjust improver and speeling directives
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Dec 15, 2024
1 parent 5242feb commit 86b7daf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions llm-superset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const axios = require("axios");

function prepareResponse(data) {
Expand Down Expand Up @@ -73,9 +72,9 @@ async function callOpenAPI(prompt, options) {

async function improveWritting(input, options) {
const prompt =
"I want you to act as an English spelling corrector and improver. Keep the meaning the same, use a " +
"I want you to act as an improver. Keep the meaning the same, use a " +
options.tone +
" tone, avoid complex words and verbs. I want you to only reply the correction, the improvements and nothing else, do not write explanations. keep the input language the same, correct and improve the following sentence: \n\n" +
" tone, avoid complex words and verbs. I want you to only reply the improvements and nothing else, do not write explanations. keep the input language the same, rewrite and improve the following: \n\n" +
input.text.trim();

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

async function spellingAndGrammar(input, options) {
const prompt =
"I want you to act as an English spelling corrector, only reply the correction, the improvements and nothing else, do not write explanations. keep the input language the same, improve the following sentence using a " +
"I want you to act as an spelling corrector, only reply the correction and nothing else, do not write explanations. keep the input language the same, correct the following using a " +
options.tone +
" tone: \n\n" +
input.text.trim();
Expand Down

0 comments on commit 86b7daf

Please sign in to comment.