Skip to content

Commit

Permalink
small cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
giosilvi committed Jan 21, 2023
1 parent 7e437cb commit d863f44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ chrome.runtime.onInstalled.addListener(function () {
}
}
else { // if the prompt does not exist, create the default one
items.customprompt = [{ "model": "text-davinci-003", "temperature": 0.1, "max_tokens": 1024, "prompt": 'Tell me more about "#TEXT#":' }];
items.customprompt = [{ "model": "text-davinci-003", "temperature": 0.1, "max_tokens": 1024, "prompt": 'Tell me more about #TEXT# :' }];
}
// save the new_prompt_list
chrome.storage.sync.set({ 'customprompt': items.customprompt });
Expand Down
4 changes: 2 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ <h5 ><img src="icons\iconA48.png" alt="logo" class="logoimage"> GPT-Prompter<br>
</div>
<div class="card-body">
<div style="display: flex; justify-content: center;">
<span class="suggestion">The "#TEXT#" in the prompt is a placeholder that will be replaced with the text you have selected.</span>
<span class="suggestion">The #TEXT# in the prompt is a placeholder that will be replaced with the text you have selected.</span>
</div>
<textarea class="form-control" id="promptinput" rows="3" title="The keyword #TEXT# is later replaced with the selected text. It cannot be erased here">Tell me more about "#TEXT#":</textarea>
<textarea class="form-control" id="promptinput" rows="3" title="The keyword #TEXT# is later replaced with the selected text. It cannot be erased here">Tell me more about #TEXT# :</textarea>
<button type="button" id="createPrompt" class="list-group-item list-group-item-action text-center"
style="background-color:#10a37f; color:white"><b>Create prompt</b></button>
</div>
Expand Down
2 changes: 0 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ body .list .input {
height: 50px;
width: 250px;
padding-left: 10px;
font-family: "Raleway", sans-serif;
font-weight: 800;
font-size: 16px;
margin-left: -5px;
Expand All @@ -123,7 +122,6 @@ body ul {
}
body ul .draggable {
will-change: transform;
font-family: "Raleway", sans-serif;
list-style-type: none;
margin: 10px;
background-color: white;
Expand Down

0 comments on commit d863f44

Please sign in to comment.