diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index 9865ff3c2bfe8d..3387780f6a58f1 100644 --- a/web/app/components/app/chat/answer/index.tsx +++ b/web/app/components/app/chat/answer/index.tsx @@ -194,7 +194,7 @@ const Answer: FC = ({ ) } -
+
@@ -280,7 +280,7 @@ const Answer: FC = ({ {!feedbackDisabled && renderFeedbackRating(feedback?.rating, !isHideFeedbackEdit, displayScene !== 'console')}
- {more && } + {more && }
diff --git a/web/app/components/app/chat/more-info/index.tsx b/web/app/components/app/chat/more-info/index.tsx index 4b18a0f37475a6..83cc5be7c8c2e4 100644 --- a/web/app/components/app/chat/more-info/index.tsx +++ b/web/app/components/app/chat/more-info/index.tsx @@ -5,11 +5,15 @@ import { useTranslation } from 'react-i18next' import type { MessageMore } from '../type' import { formatNumber } from '@/utils/format' -export type IMoreInfoProps = { more: MessageMore; isQuestion: boolean } +export type IMoreInfoProps = { + more: MessageMore + isQuestion: boolean + className?: string +} -const MoreInfo: FC = ({ more, isQuestion }) => { +const MoreInfo: FC = ({ more, isQuestion, className }) => { const { t } = useTranslation() - return (
+ return (
{`${t('appLog.detail.timeConsuming')} ${more.latency}${t('appLog.detail.second')}`} {`${t('appLog.detail.tokenCost')} ${formatNumber(more.tokens)}`} ยท