@@ -9075,6 +9075,10 @@ Current version indicated by LITEVER below.
90759075
90769076 function transform_oai_ep(desired_oai_ep)
90779077 {
9078+ if(desired_oai_ep!="")
9079+ {
9080+ desired_oai_ep = desired_oai_ep.trim();
9081+ }
90789082 if(desired_oai_ep!="" && desired_oai_ep.slice(-1)=="/")
90799083 {
90809084 desired_oai_ep = desired_oai_ep.slice(0, -1);
@@ -9086,6 +9090,10 @@ Current version indicated by LITEVER below.
90869090 }
90879091 if (document.getElementById("oaiaddversion").checked)
90889092 {
9093+ //fix incorrect paths
9094+ if(desired_oai_ep!="" && desired_oai_ep.toLowerCase().endsWith("/chat/completions")) {
9095+ desired_oai_ep = desired_oai_ep.slice(0,-17);
9096+ }
90899097 if(desired_oai_ep!="" && desired_oai_ep.length > 4 && !desired_oai_ep.slice(-4).toLowerCase().includes("/v") && !desired_oai_ep.toLowerCase().includes("/v1/")) {
90909098 desired_oai_ep = desired_oai_ep + "/v1";
90919099 }
@@ -10084,6 +10092,11 @@ Current version indicated by LITEVER below.
1008410092 }
1008510093 }
1008610094
10095+ function reset_horde_selection()
10096+ {
10097+ document.getElementById("pickedmodel").selectedIndex = -1;
10098+ }
10099+
1008710100 function inputboxfocus()
1008810101 {
1008910102 document.getElementById("inputboxcontainerinput").type = "text";
@@ -14174,12 +14187,10 @@ Current version indicated by LITEVER below.
1417414187 gentxt = trim_extra_stop_seqs(gentxt,true);
1417514188 let mychatname = get_my_multiplayer_chatname();
1417614189
14177- //always trim incomplete sentences for adventure and chat (if not multiline)
14190+ //allow trim incomplete sentences
1417814191 //do not trim if instruct mode AND stop token reached
1417914192 let donottrim = ((localsettings.opmode == 4||localsettings.opmode == 3) && last_stop_reason=="stop");
14180- if (!donottrim && (localsettings.opmode == 2
14181- || (localsettings.opmode == 3 && !localsettings.allow_continue_chat)
14182- || localsettings.trimsentences == true)) {
14193+ if (!donottrim && localsettings.trimsentences == true) {
1418314194 //also, to prevent a trim from bisecting a chat name, if a response contains a chatname, do not trim
1418414195 donottrim = false;
1418514196 if(localsettings.opmode == 3)
@@ -18652,7 +18663,7 @@ Current version indicated by LITEVER below.
1865218663 <div class="justifyleft anotelabel">
1865318664 Select AI Horde Model <span class="helpicon">?
1865418665 <span class="helptext">These are the models currently provided by AI Horde volunteers.</span>
18655- </span>
18666+ </span> <a href="#" class="color_blueurl" onclick="reset_horde_selection()">[Reset]</a>
1865618667 <span style="float:right;">
1865718668 <a href="#" class="color_green" onclick="get_and_show_workers()">[See Current Volunteers] </a>
1865818669 </span>
0 commit comments