mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-20 01:31:42 +02:00
default trim_stop to true, which trims any tokens after a stop sequence and the stop sequence itself. This is potentially a breaking change.
This commit is contained in:
+13
-8
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
|
||||
-->
|
||||
|
||||
<script>
|
||||
const LITEVER = 192;
|
||||
const LITEVER = 193;
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
var localflag = true;
|
||||
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
|
||||
@@ -5402,12 +5402,12 @@ Current version indicated by LITEVER below.
|
||||
image_db[imgid].imsource = 0; //0=generated,1=uploaded
|
||||
}else{
|
||||
console.log("Generation Error!");
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running and properly configured!\n\nIt must be launched with the flag --enable-cors-header '*' to enable API access\n");
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running at "+localsettings.saved_comfy_url+" and properly configured!\n\nIt must be launched with the flag --listen --enable-cors-header '*' to enable API access\n");
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
console.log("Generation Error: " + error);
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running and properly configured!\n\nIt must be launched with the flag --enable-cors-header '*' to enable API access\n");
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running at "+localsettings.saved_comfy_url+" and properly configured!\n\nIt must be launched with the flag --listen --enable-cors-header '*' to enable API access\n");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -8822,7 +8822,6 @@ Current version indicated by LITEVER below.
|
||||
console.log(data);
|
||||
if (data && data.models && data.models.length > 0)
|
||||
{
|
||||
var lastOption = dropdown.lastElementChild;
|
||||
for (var i = dropdown.options.length - 1; i >= 0; i--) {
|
||||
var option = dropdown.options[i];
|
||||
dropdown.remove(option);
|
||||
@@ -8908,12 +8907,18 @@ Current version indicated by LITEVER below.
|
||||
dropdown.remove(option);
|
||||
}
|
||||
let selidx = 0;
|
||||
let sortedarr = [];
|
||||
for(var i = 0; i < data.data.length; i++) {
|
||||
var opt = data.data[i];
|
||||
sortedarr.push(opt.id);
|
||||
}
|
||||
sortedarr.sort();
|
||||
for(var i=0;i<sortedarr.length;++i)
|
||||
{
|
||||
var el = document.createElement("option");
|
||||
el.textContent = opt.id;
|
||||
el.value = opt.id;
|
||||
if(isOpenrouter && opt.id=="mistralai/mistral-7b-instruct")
|
||||
el.textContent = sortedarr[i];
|
||||
el.value = sortedarr[i];
|
||||
if(isOpenrouter && sortedarr[i]=="mistralai/mistral-7b-instruct")
|
||||
{
|
||||
selidx = i;
|
||||
}
|
||||
@@ -14686,7 +14691,7 @@ Current version indicated by LITEVER below.
|
||||
}).catch((error) => {
|
||||
console.log("Generation Error: " + error);
|
||||
delete image_db[key];
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running and properly configured!\n\nIt must be launched with the flag --enable-cors-header '*' to enable API access\n");
|
||||
msgbox("Image Generation Failed!\n\nPlease make sure ComfyUI is running at "+localsettings.saved_comfy_url+" and properly configured!\n\nIt must be launched with the flag --listen --enable-cors-header '*' to enable API access\n");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user