${role === 'assistant' ? modelLabel() : role}${role === 'user' ? ' ' + timeStr + '' : ''}
${textHtml}${copyIcon}
${role === 'assistant' ? '' : ''}diff --git a/templates/index.html b/templates/index.html index 8641a09..d140334 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1450,7 +1450,7 @@ function appendMessage(role, content, animate, isSearch = false, afterEl = null) const timeStr = months[now.getMonth()] + ' ' + String(now.getDate()).padStart(2,'0') + ', ' + now.getFullYear() + ' ' + String(now.getHours()).padStart(2,'0') + ':' + String(now.getMinutes()).padStart(2,'0') + ':' + String(now.getSeconds()).padStart(2,'0') + '.' + String(Math.floor(ms / 10)).padStart(2,'0'); const textHtml = content ? renderMarkdown(content) : ''; const copyIcon = role === 'user' && content ? `📋` : ''; - div.innerHTML = `