(text, msgId)
| 767 | } |
| 768 | |
| 769 | function renderText(text, msgId) { |
| 770 | let el = S.messageMap.get(msgId); |
| 771 | if (!el) { |
| 772 | el = document.createElement('div'); |
| 773 | el.className = 'assistant-text'; |
| 774 | if (msgId) el.dataset.messageId = msgId; |
| 775 | S.messageMap.set(msgId, el); |
| 776 | $msgs.appendChild(el); |
| 777 | } |
| 778 | const d = document.createElement('div'); |
| 779 | d.innerHTML = renderMd(text); |
| 780 | el.appendChild(d); |
| 781 | } |
| 782 | |
| 783 | function renderThinking(b) { |
| 784 | closeGroup(); |
no test coverage detected