studio/frontend: show "1 second" instead of "1 seconds" in thinking blocks (#5777)

* studio/frontend: show "1 second" instead of "1 seconds" in thinking blocks

* Update studio/frontend/src/components/assistant-ui/reasoning.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
oobabooga 2026-05-26 09:30:22 -03:00 committed by GitHub
commit eacff8b827
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,7 +134,7 @@ function ReasoningTrigger({
{active ? (
<span className="text-sm">Thinking...</span>
) : (
<span>Thought for {duration ?? 0} seconds</span>
<span>Thought for {duration ?? 0} {duration === 1 ? "second" : "seconds"}</span>
)}
</span>
<ChevronDownIcon