Spaces:
Running
Running
Update public/esltool.js
Browse files- public/esltool.js +2 -2
public/esltool.js
CHANGED
|
@@ -107,12 +107,12 @@ 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}** `
|
| 111 |
utils.displayMarkdown(prompt+'...');
|
| 112 |
utils.AIComplete(prompt,{
|
| 113 |
url: '/openai/v1/chat/completions',
|
| 114 |
model: config.model ||
|
| 115 |
-
'
|
| 116 |
max_tokens:config.max_tokens || 40000,
|
| 117 |
});
|
| 118 |
}
|
|
|
|
| 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',
|
| 114 |
model: config.model ||
|
| 115 |
+
'llama3-70b-8192',
|
| 116 |
max_tokens:config.max_tokens || 40000,
|
| 117 |
});
|
| 118 |
}
|