| 80 | export function updateReasoningTimeUI(element, duration, { forceEnd = false } = {}) { | 80 | export function updateReasoningTimeUI(element, duration, { forceEnd = false } = {}) { |
| 81 | if (duration) { | 81 | if (duration) { |
| 82 | const durationStr = moment.duration(duration).locale(getCurrentLocale()).humanize({ s: 50, ss: 9 }); | 82 | const durationStr = moment.duration(duration).locale(getCurrentLocale()).humanize({ s: 50, ss: 9 }); |
| 83 | element.textContent = t`Thought for ${durationStr}`; | 83 | const secondsStr = moment.duration(duration).asSeconds(); |
| | 84 | element.innerHTML = t`Thought for <span title="${secondsStr} seconds">${durationStr}</span>`; |
| 84 | } else if (forceEnd) { | 85 | } else if (forceEnd) { |
| 85 | element.textContent = t`Thought for some time`; | 86 | element.textContent = t`Thought for some time`; |
| 86 | } else { | 87 | } else { |