Merge pull request #245 from SuanmoSuanyangTechnology/feature/model_zy

feat(web): model ui update
This commit is contained in:
yingzhao
2026-01-29 19:05:39 +08:00
committed by GitHub
4 changed files with 4 additions and 2 deletions

View File

@@ -558,6 +558,7 @@ export const en = {
item: 'item',
apiKeyNum: ' API Keys',
official: 'Official',
deprecated: 'Deprecated',
llm: 'LLM',
chat: 'Chat',

View File

@@ -1130,6 +1130,7 @@ export const zh = {
item: '个',
apiKeyNum: '个 API Key',
official: '官方',
deprecated: '已弃用',
llm: 'LLM',
chat: 'Chat',

View File

@@ -80,7 +80,7 @@ const ModelSquare = forwardRef <BaseRef, { query: any; handleEdit: (vo?: ModelPl
{!item.is_official && <Button type="primary" disabled={item.is_deprecated} onClick={() => handleEdit(item)}>{t('modelNew.edit')}</Button>}
{item.is_added
? <Button type="primary" disabled>{t('modelNew.added')}</Button>
: <Button type="primary" ghost disabled={item.is_deprecated} onClick={() => handleAdd(item)}>+ {t('common.add')}</Button>
: <Button type="primary" ghost disabled={item.is_deprecated} onClick={() => handleAdd(item)}>{item.is_deprecated ? t('modelNew.deprecated') : `+ ${t('common.add')}`}</Button>
}
</Space>
</Flex>

View File

@@ -89,7 +89,7 @@ const ModelSquareDetail = forwardRef<ModelSquareDetailRef, ModelSquareDetailProp
{!item.is_official && <Button type="primary" disabled={item.is_deprecated} onClick={() => handleEdit(item)}>{t('modelNew.edit')}</Button>}
{item.is_added
? <Button type="primary" disabled>{t('modelNew.added')}</Button>
: <Button type="primary" ghost disabled={item.is_deprecated} onClick={() => handleAdd(item)}>+ {t('common.add')}</Button>
: <Button type="primary" ghost disabled={item.is_deprecated} onClick={() => handleAdd(item)}>{item.is_deprecated ? t('modelNew.deprecated') : `+ ${t('common.add')}`}</Button>
}
</Space>
</Flex>