chore: update 3 file(s)

This commit is contained in:
mike
2025-12-29 00:00:55 +01:00
parent 11f0f8fbee
commit 9a649a9475
3 changed files with 33 additions and 30 deletions

View File

@@ -1,3 +1,5 @@
import './style2.css'
const BACKENDS = {
plato : {
prod: '/api/plato',
@@ -212,7 +214,7 @@ marked.setOptions({
}
})
function autoResize(textarea) {
window.autoResize = function autoResize(textarea) {
textarea.style.height = 'auto'
textarea.style.height = Math.min(textarea.scrollHeight, 300) + 'px'
}
@@ -687,4 +689,4 @@ function resetChat() {
chatLog.innerHTML = ''
addMessage('assistant', welcomeMessage, true, null, false)
}
}
}