Update MessageThought.tsx

This commit is contained in:
Peter Chen 2025-02-10 16:37:22 +08:00 committed by 亢奋猫
parent a0cfe7df4a
commit 04cfe5019e

View File

@ -24,7 +24,7 @@ const MessageThought: FC<Props> = ({ message }) => {
} }
const thinkingTime = message.metrics?.time_thinking_millsec || 0 const thinkingTime = message.metrics?.time_thinking_millsec || 0
const thinkingTimeSecounds = (thinkingTime / 1000).toFixed(1) const thinkingTimeSeconds = (thinkingTime / 1000).toFixed(1)
return ( return (
<CollapseContainer <CollapseContainer
@ -37,7 +37,7 @@ const MessageThought: FC<Props> = ({ message }) => {
label: ( label: (
<MessageTitleLabel> <MessageTitleLabel>
<TinkingText> <TinkingText>
{isThinking ? t('chat.thinking') : t('chat.deeply_thought', { secounds: thinkingTimeSecounds })} {isThinking ? t('chat.thinking') : t('chat.deeply_thought', { secounds: thinkingTimeSeconds })}
</TinkingText> </TinkingText>
{isThinking && <BarLoader color="#9254de" />} {isThinking && <BarLoader color="#9254de" />}
</MessageTitleLabel> </MessageTitleLabel>