Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox

# Conflicts:
#	web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx
#	web/package.json
This commit is contained in:
yyh
2026-01-21 10:52:43 +08:00
282 changed files with 1329 additions and 1002 deletions

View File

@ -219,7 +219,7 @@ const Answer: FC<AnswerProps> = ({
)
}
{
item.siblingCount && item.siblingCount > 1 && item.siblingIndex !== undefined && (
!!(item.siblingCount && item.siblingCount > 1 && item.siblingIndex !== undefined) && (
<ContentSwitch
count={item.siblingCount}
currentIndex={item.siblingIndex}

View File

@ -29,7 +29,7 @@ const More: FC<MoreProps> = ({
>
{`${t('detail.tokenCost', { ns: 'appLog' })} ${formatNumber(more.tokens)}`}
</div>
{more.tokens_per_second && (
{!!more.tokens_per_second && (
<div
className="mr-2 max-w-[25%] shrink-0 truncate"
title={`${more.tokens_per_second} tokens/s`}

View File

@ -146,7 +146,7 @@ const Popup: FC<PopupProps> = ({
icon={<BezierCurve03 className="mr-1 h-3 w-3" />}
/>
{
source.score && (
!!source.score && (
<ProgressTooltip data={Number(source.score.toFixed(2))} />
)
}