im1111 commited on
Commit
0b8a6a8
·
verified ·
1 Parent(s): 0854cad

Update public/esltool.js

Browse files
Files changed (1) hide show
  1. public/esltool.js +1 -1
public/esltool.js CHANGED
@@ -107,7 +107,7 @@ function ask(prompt) {
107
 
108
  let currentLineString = utils.getCurrentLineString(document.activeElement);
109
  let selectText = window.getSelection().toString();
110
- prompt=`${prompt} **${selectText.length >= 1 ? selectText : currentLineString}** +${config.cmd || ' '} `
111
  utils.displayMarkdown(prompt+'...');
112
  utils.AIComplete(prompt,{
113
  url: '/openai/v1/chat/completions',
 
107
 
108
  let currentLineString = utils.getCurrentLineString(document.activeElement);
109
  let selectText = window.getSelection().toString();
110
+ prompt=`${prompt} **${selectText.length >= 1 ? selectText : currentLineString}** ${config.cmd || ' '} `
111
  utils.displayMarkdown(prompt+'...');
112
  utils.AIComplete(prompt,{
113
  url: '/openai/v1/chat/completions',