mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-04-28 03:30:20 +00:00
updated lite
This commit is contained in:
parent
2f67e9f096
commit
9042f3fec8
1 changed files with 9 additions and 4 deletions
|
|
@ -7678,6 +7678,11 @@ Current version indicated by LITEVER below.
|
|||
function stashLatex(text) { //this function preserves the contents of multiline latex blocks so they don't get corrupted by markdown
|
||||
const latexBlocks = [];
|
||||
let counter = 0;
|
||||
text = text.replace(/(^> \$\$\n([\s\S]*?)\n\$\$)/gm, (match) => {
|
||||
const key = `%%LATEXBLK${counter++}%%`;
|
||||
latexBlocks.push({ key, value: match.slice(2) });
|
||||
return key;
|
||||
});
|
||||
text = text.replace(/(^ {0,6}\\\[\n([\s\S]*?)\n {0,6}\\\] {0,2}$|^\$\$\n([\s\S]*?)\n\$\$$|^ {2}\$\$\n {2}([\s\S]*?)\n {2}\$\$$|\$\$([^\n]+?)\$\$|\\\(([^\n]+?)\\\)|\\\[([^\n]+?)\\\])/gm, (match, p1, p2, p3, p4, p5, p6, p7) => {
|
||||
const key = `%%LATEXBLK${counter++}%%`;
|
||||
latexBlocks.push({ key, value: match });
|
||||
|
|
@ -13673,7 +13678,7 @@ Current version indicated by LITEVER below.
|
|||
document.getElementById("featherlessdesc").classList.remove("hidden");
|
||||
document.getElementById("custom_oai_key").value = (localsettings.saved_featherless_key==dummy_api_key?"":localsettings.saved_featherless_key);
|
||||
document.getElementById("custom_oai_endpoint").value = default_featherless_base;
|
||||
try_fetch_oai_models_auto();
|
||||
// try_fetch_oai_models_auto(); //no more autofetch for featherless, too many models!
|
||||
}
|
||||
else if(epchoice==9)
|
||||
{
|
||||
|
|
@ -14505,7 +14510,7 @@ Current version indicated by LITEVER below.
|
|||
overridedropdown.remove(option);
|
||||
}
|
||||
var el = document.createElement("option");
|
||||
el.textContent = "Default Config";
|
||||
el.textContent = "Base Config";
|
||||
el.value = "";
|
||||
overridedropdown.appendChild(el);
|
||||
for(var i=0;i<dropdown.options.length;++i)
|
||||
|
|
@ -31488,11 +31493,11 @@ Current version indicated by LITEVER below.
|
|||
<b class="color_white" style="padding: 5px;">Change Loaded Model / Config:</b><br>
|
||||
<div class="color_white" style="padding: 5px;">
|
||||
<div style="padding-top:3px">
|
||||
Select Primary Target: <select title="Select New Config" style="padding:4px; width:100%" class="form-control" id="adminconfigdropdown">
|
||||
Select New Model or Config: <select title="Select New Model or Config" style="padding:4px; width:100%" class="form-control" id="adminconfigdropdown">
|
||||
</select>
|
||||
</div>
|
||||
<div style="padding-top:3px">
|
||||
Select Secondary Target (optional): <select title="Override Config" style="padding:4px; width:100%" class="form-control" id="adminconfigoverridedropdown">
|
||||
Select Base Config (optional): <select title="Base Config" style="padding:4px; width:100%" class="form-control" id="adminconfigoverridedropdown">
|
||||
</select>
|
||||
</div>
|
||||
<div style="display:flex; padding: 5px; justify-content: center;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue