chore: update 3 file(s)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user