patch
This commit is contained in:
parent
4382e51719
commit
fd770bb105
1 changed files with 7 additions and 7 deletions
10
klite.embd
10
klite.embd
|
@ -9665,6 +9665,11 @@ Current version: 82
|
||||||
if(localsettings.opmode==3 && localsettings.gui_type_chat==1)
|
if(localsettings.opmode==3 && localsettings.gui_type_chat==1)
|
||||||
{
|
{
|
||||||
render_enhanced_chat(textToRender);
|
render_enhanced_chat(textToRender);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
document.getElementById("chat_msg_body").innerHTML = render_enhanced_chat_instruct(textToRender,false);
|
||||||
|
}
|
||||||
if (localsettings.opmode == 3 && localsettings.chatopponent != "" && localsettings.chatopponent.includes("||$||")) {
|
if (localsettings.opmode == 3 && localsettings.chatopponent != "" && localsettings.chatopponent.includes("||$||")) {
|
||||||
document.getElementById("chat_btnmode_chat").classList.remove("hidden");
|
document.getElementById("chat_btnmode_chat").classList.remove("hidden");
|
||||||
document.getElementById("cht_inp").classList.add("shorter");
|
document.getElementById("cht_inp").classList.add("shorter");
|
||||||
|
@ -9672,11 +9677,6 @@ Current version: 82
|
||||||
document.getElementById("chat_btnmode_chat").classList.add("hidden");
|
document.getElementById("chat_btnmode_chat").classList.add("hidden");
|
||||||
document.getElementById("cht_inp").classList.remove("shorter");
|
document.getElementById("cht_inp").classList.remove("shorter");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
document.getElementById("chat_msg_body").innerHTML = render_enhanced_chat_instruct(textToRender,false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show the 'AI is typing' message if an answer is pending, and prevent the 'send button' from being clicked again.
|
// Show the 'AI is typing' message if an answer is pending, and prevent the 'send button' from being clicked again.
|
||||||
if (pending_response_id=="") { document.getElementById("chatistyping").classList.add("hidden"); }
|
if (pending_response_id=="") { document.getElementById("chatistyping").classList.add("hidden"); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue