ui: fix issue with stalechat message

This commit is contained in:
Deepak Seth 2023-12-16 21:35:51 -08:00
parent de1bcdad17
commit ea8d513e6e

View file

@ -650,8 +650,10 @@
<textarea <textarea
id="chat_input" id="chat_input"
className=${generating.value ? "loading" : null} className=${generating.value ? "loading" : null}
oninput=${(e) => message.value = e.target.value} oninput=${(e) => {
onchange=${(e) => message.value = e.target.value} message.value = e.target.value;
chatMessage.value = "";
}}
onkeypress=${enterSubmits} onkeypress=${enterSubmits}
placeholder="Say something..." placeholder="Say something..."
rows=2 rows=2
@ -836,6 +838,7 @@
} else{ } else{
document.getElementById('_prompt').value = selectedValue; document.getElementById('_prompt').value = selectedValue;
session.value.prompt = selectedValue; session.value.prompt = selectedValue;
chatMessage.value = "";
} }
}; };
return ( return (