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