mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 04:19:02 +08:00
Update MessageThought.tsx
This commit is contained in:
parent
a0cfe7df4a
commit
04cfe5019e
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user