AI instructions

This commit is contained in:
yoannchb-pro
2023-06-20 18:50:15 -04:00
parent e33cc5b8af
commit 68bac8b432
4 changed files with 15 additions and 15 deletions
+7 -7
View File
@@ -101,11 +101,10 @@
Follow those rules:
- Sometimes there won't be a question, so just answer the statement as you normally would without following the other rules and give the most detailled and complete answer with explication.
- Your goal is to understand the statement and to reply to each question by giving only the answer.
- You will keep the same order for the answers as the questions event if it's a put in order question.
- You will keep the same order for the answers as it's asked event if it's a put in order question. Never change the order of the response for each questions.
- You will separate all the answer with new lines and only show the correctes one.
- You should answer in the same order as it is ine the question even if it's a put in order question.
- You will omit the question or any other text/information we just want the correct answer.
- You should only give exactly the same text as the question for each answer.
- You will onyl give the answers for each question and omit the questions, statement, title or other informations from the response.
- You will only give answer with exactly the same text as the gived answers.
- The question always have the good answer so you should always give an answer to the question.
- You will always respond in the same langage as the user question.`,
},
@@ -244,18 +243,19 @@ Follow those rules:
const valide = correct[j].includes(content);
/* Handle put in order question */
if (!/[^\d]+/gi.test(content)) {
console.log("Checking put in order...");
const content = normalizeText(option.parentNode
.closest("tr")
.querySelector(".text").textContent);
const index = correct.findIndex((c) => {
const valide = c.includes(content);
const index = correct.findIndex((answer) => {
const valide = answer.includes(content);
if (config.logs)
Logs.responseTry(content, valide);
return valide;
});
if (index !== -1) {
if (config.mouseover) {
options[index + 1].closest("select").addEventListener("click", function () {
options[index].closest("select").addEventListener("click", function () {
options[index + 1].selected = "selected";
}, { once: true });
}
File diff suppressed because one or more lines are too long
+3 -4
View File
@@ -30,11 +30,10 @@ async function getChatGPTResponse(
Follow those rules:
- Sometimes there won't be a question, so just answer the statement as you normally would without following the other rules and give the most detailled and complete answer with explication.
- Your goal is to understand the statement and to reply to each question by giving only the answer.
- You will keep the same order for the answers as the questions event if it's a put in order question.
- You will keep the same order for the answers as it's asked event if it's a put in order question. Never change the order of the response for each questions.
- You will separate all the answer with new lines and only show the correctes one.
- You should answer in the same order as it is ine the question even if it's a put in order question.
- You will omit the question or any other text/information we just want the correct answer.
- You should only give exactly the same text as the question for each answer.
- You will onyl give the answers for each question and omit the questions, statement, title or other informations from the response.
- You will only give answer with exactly the same text as the gived answers.
- The question always have the good answer so you should always give an answer to the question.
- You will always respond in the same langage as the user question.`,
},
+4 -3
View File
@@ -49,19 +49,20 @@ function handleSelect(
/* Handle put in order question */
if (!/[^\d]+/gi.test(content)) {
console.log("Checking put in order...");
const content = normalizeText(
(option.parentNode as HTMLElement)
.closest("tr")
.querySelector(".text").textContent
);
const index = correct.findIndex((c) => {
const valide = c.includes(content);
const index = correct.findIndex((answer) => {
const valide = answer.includes(content);
if (config.logs) Logs.responseTry(content, valide);
return valide;
});
if (index !== -1) {
if (config.mouseover) {
options[index + 1].closest("select").addEventListener(
options[index].closest("select").addEventListener(
"click",
function () {
options[index + 1].selected = "selected" as any;