Default ContextWindow = [System, Last Query+Resp, Cur Query].
-
experiment iRecentUserMsgCnt, max_tokens, model ctxt window to expand
+
ChatHistInCtxt, MaxTokens, ModelCtxt window to expand
`;
@@ -542,6 +539,8 @@ class MultiChatUI {
// allow user to insert enter into the system prompt using shift+enter.
// while just pressing enter key will lead to setting the system prompt.
if ((ev.key === "Enter") && (!ev.shiftKey)) {
+ let value = this.elInSystem.value;
+ this.elInSystem.value = value.substring(0,value.length-1);
let chat = this.simpleChats[this.curChatId];
chat.add_system_anytime(this.elInSystem.value, this.curChatId);
chat.show(this.elDivChat);