diff --git a/ui/src/api/types.ts b/ui/src/api/types.ts index 81ae5aa..883929d 100644 --- a/ui/src/api/types.ts +++ b/ui/src/api/types.ts @@ -380,6 +380,8 @@ export interface DomainModel { input?: number; /** 是否启用 */ is_active?: boolean; + /** 是否内部模型 */ + is_internal?: boolean; /** 模型名称 如: deepseek-v3 */ model_name?: string; /** 模型类型 llm:对话模型 coder:代码模型 */ diff --git a/ui/src/pages/model/components/modelCard.tsx b/ui/src/pages/model/components/modelCard.tsx index 0887bca..a616d67 100644 --- a/ui/src/pages/model/components/modelCard.tsx +++ b/ui/src/pages/model/components/modelCard.tsx @@ -116,17 +116,15 @@ const ModelItem = ({ } sx={{ fontSize: 24 }} /> - - {data.show_name && ( - - {data.show_name} / - - )} - {data.model_name} + + + {data.show_name || '未命名'} + + + / {data.model_name} + - - {data.is_active && 正在使用} + + {data.is_active && 正在使用} + - onEdit(data)} > 编辑 - + } {!data.is_active && ( = ({ title, modelType }) => { {modelList?.length > 0 ? ( {modelList.map((item) => ( - + ))}