From 1841781d96b0090ea0dd9ffa244b94cbb124eaa3 Mon Sep 17 00:00:00 2001
From: Monster <389264167@qq.com>
Date: Wed, 16 Jul 2025 19:59:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=85=E7=BD=AE=E6=A8=A1=E5=9E=8B=E4=B8=8D?=
=?UTF-8?q?=E8=83=BD=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ui/src/api/types.ts | 2 ++
ui/src/pages/model/components/modelCard.tsx | 32 ++++++++++++---------
2 files changed, 20 insertions(+), 14 deletions(-)
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) => (
-
+
))}