This commit is contained in:
bel
2023-06-17 16:02:50 -06:00
parent a29101296b
commit 429bdfff78
3 changed files with 8 additions and 3 deletions

View File

@@ -12,8 +12,11 @@
}
function appendStreamLog(message) {
if (message)
document.getElementById("stream-log").innerHTML += "\n" + message
if (!message)
return
document.getElementById("stream-log").innerHTML += "\n" + message
var textarea = document.getElementById("stream-log")
textarea.scrollTop = textarea.scrollHeight
}
function startStream(newPrompt) {
@@ -65,6 +68,7 @@
</script>
</header>
<body onload="loadStream()">
TODO ?more=true
<details>
<summary>Set up a new session</summary>
<form id="prompt" onsubmit="startStream(this); return false;">