@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
1212-->
1313
1414<script id="init-config">
15- const LITEVER = 268 ;
15+ const LITEVER = 269 ;
1616 const urlParams = new URLSearchParams(window.location.search);
1717 var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
1818 const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -3633,7 +3633,7 @@ Current version indicated by LITEVER below.
36333633 "user":"<|start|>user<|message|>",
36343634 "user_end":"<|end|>",
36353635 "assistant":"<|start|>assistant<|channel|>final<|message|>",
3636- "assistant_end":"<|return |>",
3636+ "assistant_end":"<|end |>",
36373637 "system":"<|start|>developer<|message|>",
36383638 "system_end":"<|end|>",
36393639 }
@@ -15975,12 +15975,12 @@ Current version indicated by LITEVER below.
1597515975 newgen = "\n\n\> " + newgen + diceaddon + "\n\n";
1597615976 }
1597715977 //if very first submission is a story in adventure mode, swap to action
15978- if(localsettings.opmode == 2 && newgen != "" && gametext_arr.length==0 )
15978+ if(localsettings.opmode == 2 && (gametext_arr.length==0 || ( gametext_arr.length==1 && gametext_arr[0]=="")) )
1597915979 {
1598015980 if(localsettings.adventure_switch_mode==0)
1598115981 {
1598215982 localsettings.adventure_switch_mode = 1;
15983- if (current_memory.trim() == "")
15983+ if (current_memory.trim() == "" && newgen!="" )
1598415984 {
1598515985 doNotGenerate = true;
1598615986 }
0 commit comments