fix: 统一前端模型展示名称

This commit is contained in:
hh
2026-07-15 11:11:09 +08:00
parent ca3b09c62e
commit 38d8c8ad54
4 changed files with 39 additions and 13 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import type {
User,
UserPreference
} from "./types";
import { publicModelDisplayName } from "./model-display";
import { CornerMarks, Decorations, Sidebar, ToastLike } from "./components/app-shell";
import {
AccountPage,
@@ -996,7 +997,7 @@ export function App() {
<PipelinePage
key={pipelineProject.id}
project={pipelineProject}
scriptModelName={textModel?.display_name || textModel?.name || "AI"}
scriptModelName={publicModelDisplayName(textModel, "AI")}
textModels={modelConfigs.filter((m) => m.capability === "text" && m.status === "active")}
loading={loading}
navigate={navigate}