fix(web): model bugfix

This commit is contained in:
zhaoying
2026-01-28 19:58:33 +08:00
parent e89c23da4d
commit 0eb335d112
8 changed files with 11 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ const ModelListDetail = forwardRef<ModelListDetailRef, ModelListDetailProps>(({
return (
<RbDrawer
title={<>{data.provider} {t('modelNew.modelList')} ({list.length}{t('modelNew.item')})</>}
title={<>{t(`modelNew.${data.provider}`)} {t('modelNew.modelList')} ({list.length}{t('modelNew.item')})</>}
open={open}
onClose={handleClose}
>
@@ -77,7 +77,7 @@ const ModelListDetail = forwardRef<ModelListDetailRef, ModelListDetailProps>(({
<RbCard
key={item.id}
title={item.name}
subTitle={<Space>
subTitle={<Space className="rb:mt-1!">
<Tag>{t(`modelNew.${item.type}`)}</Tag>
<Tag color="warning">{item.api_keys.length}{t('modelNew.apiKeyNum')}</Tag>
</Space>}