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:
parent
c49cc6daf5
commit
eacff8b827
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue