From ae39c45a734e2d0f912ad5d9b7e33ffc827be412 Mon Sep 17 00:00:00 2001 From: wuyongtao Date: Tue, 11 Aug 2026 16:34:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=80=82=E9=85=8D=E4=B8=8E=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=B5=8B=E8=AF=95=E5=BB=B6=E8=BF=9F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 index.html 中 Google Fonts 外链,适配离线部署环境 - 侧边栏用户头像改为显示姓名首字母,去掉 picsum 占位图外链 - 在线模型测试补充 latency_ms 延迟字段展示 - api_key 为空时传空字符串避免校验报错 Co-Authored-By: Claude --- frontend/index.html | 3 --- frontend/src/api/modules/model.ts | 8 +++++++- frontend/src/components/AppSidebar.vue | 2 +- frontend/src/views/model/ModelCreateView.vue | 10 ++++++++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 2b6ea12..9b525da 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,9 +4,6 @@ - - - 远光软件微调平台 diff --git a/frontend/src/api/modules/model.ts b/frontend/src/api/modules/model.ts index fef7227..835212a 100644 --- a/frontend/src/api/modules/model.ts +++ b/frontend/src/api/modules/model.ts @@ -107,7 +107,13 @@ export const testOnlineModel = (data: { api_key: string online_model_name: string }) => - post<{ success: boolean; error?: string; model?: string; usage?: object }>( + post<{ + success: boolean + error?: string + model?: string + usage?: object + latency_ms?: number + }>( '/model-manage/test-online', data, ) diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index 416476d..f925037 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -180,7 +180,7 @@ async function handleLogout() {