mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add reasoning time seconds tooltip
This commit is contained in:
@ -80,7 +80,8 @@ export function extractReasoningFromData(data) {
|
||||
export function updateReasoningTimeUI(element, duration, { forceEnd = false } = {}) {
|
||||
if (duration) {
|
||||
const durationStr = moment.duration(duration).locale(getCurrentLocale()).humanize({ s: 50, ss: 9 });
|
||||
element.textContent = t`Thought for ${durationStr}`;
|
||||
const secondsStr = moment.duration(duration).asSeconds();
|
||||
element.innerHTML = t`Thought for <span title="${secondsStr} seconds">${durationStr}</span>`;
|
||||
} else if (forceEnd) {
|
||||
element.textContent = t`Thought for some time`;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user