Skip to content

Commit

Permalink
Reformat custom prompt to match the chatGPT mode. Fix bug with model …
Browse files Browse the repository at this point in the history
…in popup.js
  • Loading branch information
giosilvi committed May 25, 2024
1 parent 03e0063 commit 6b87088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,30 +155,30 @@ chrome.runtime.onInstalled.addListener(function (details) {
model: "gpt-4-turbo",
temperature: 0.1,
max_tokens: 4096,
prompt: "Try not to use headings. Tell me more about #TEXT#:",
prompt: JSON.stringify([{"role":"user", "content":"Try not to use headings.. Tell me more about #TEXT#:"}]),
twoStage: false,
},
{
model: "gpt-4-turbo",
temperature: 0.1,
max_tokens: 4096,
prompt: "Please create an Anki card for: #TEXT#:",
prompt: JSON.stringify([{"role":"user", "content":"Please create an Anki card for: #TEXT#:"}]),
twoStage: false,
},
{
model: "gpt-4-turbo",
temperature: 0.1,
max_tokens: 4096,
prompt: "Please create an Anki card for the concept below. Explain any intuitions and be sure to include formulas if necessary: #TEXT#",
prompt: JSON.stringify([{"role":"user", "content":"Please create an Anki card for the concept below. Explain any intuitions and be sure to include formulas if necessary: #TEXT#"}]),
twoStage: false,
},
{
model: "gpt-4-turbo",
temperature: 0.1,
max_tokens: 1024,
prompt:
'Answer the question as truthfully as possible using the provided text, and if the answer is not contained within the text below, say "I don\'t know" \nContext:\n#TEXT# \n\nQ:',
title: "Two-stage Q&&A",
JSON.stringify([{"role":"user", "content":"Answer the question as truthfully as possible using the provided text, and if the answer is not contained within the text below, say 'I don\'t know' \nContext:\n#TEXT# \n\nQ:"}]),
title: "Two-stage Q&A",
twoStage: true,
}
];
Expand Down
2 changes: 1 addition & 1 deletion src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function makePromptList(items) {

var modelText = document.createElement("span");
modelText.className = "feature-text";
modelText.innerText = ` ${items.customprompt[i]["model"]}`;
modelText.innerText = items.customprompt[i]["model"];
modelText.setAttribute("data-title", "Model:");

var promptText = document.createElement("span");
Expand Down

0 comments on commit 6b87088

Please sign in to comment.