-
{vo.provider}
+
{t(`modelNew.${vo.provider}`)}
@@ -55,27 +56,32 @@ const ModelSquare = forwardRef
{t(`modelNew.${item.type}`)}}
+ avatarUrl={getLogoUrl(item.logo)}
avatar={
{item.name[0]}
}
+ bodyClassName="rb:relative rb:pb-[80px]! rb:h-[calc(100%-64px)]!"
>
- {t(`modelNew.${item.type}`)}
- {item.description}
- {item.tags.map((tag, tagIndex) => {tag})}
-
-
- {item.add_count}
-
- {!item.is_official && }
- {item.is_added
- ?
- :
- }
-
-
+
+ {item.description}
+
+ {item.tags.map((tag, tagIndex) => {tag})}
+
+
+
+ {item.add_count}
+
+ {!item.is_official && }
+ {item.is_added
+ ?
+ :
+ }
+
+
+
))}
diff --git a/web/src/views/ModelManagement/components/ModelListDetail.tsx b/web/src/views/ModelManagement/components/ModelListDetail.tsx
index 48abd953..9d4303f8 100644
--- a/web/src/views/ModelManagement/components/ModelListDetail.tsx
+++ b/web/src/views/ModelManagement/components/ModelListDetail.tsx
@@ -1,6 +1,6 @@
import { useState, useImperativeHandle, forwardRef, useRef } from 'react';
import { useTranslation } from 'react-i18next';
-import { Button, Switch, Row, Col, Space } from 'antd'
+import { Button, Switch, Row, Col, Space, Tooltip } from 'antd'
import type { ProviderModelItem, ModelListItem, ModelListDetailRef, MultiKeyConfigModalRef } from '../types';
import RbDrawer from '@/components/RbDrawer';
@@ -9,6 +9,7 @@ import Tag from '@/components/Tag';
import PageEmpty from '@/components/Empty/PageEmpty';
import MultiKeyConfigModal from './MultiKeyConfigModal'
import { getModelNewList, updateModelStatus } from '@/api/models'
+import { getLogoUrl } from '../utils'
interface ModelListDetailProps {
refresh?: () => void;
@@ -80,21 +81,25 @@ const ModelListDetail = forwardRef