feat: surface local model health in web ui

This commit is contained in:
kris
2026-03-22 14:18:38 +08:00
parent 652f0c9f79
commit c657db9b38
3 changed files with 11 additions and 2 deletions

View File

@@ -1484,6 +1484,10 @@ def healthz() -> dict[str, Any]:
def integrations_health(account: dict[str, Any] = Depends(require_approved)) -> dict[str, Any]:
_ = account
return {
"local_model": {
"base_url": LOCAL_OPENAI_BASE_URL,
**probe_http(LOCAL_OPENAI_BASE_URL, "/models"),
},
"cutvideo": {
"base_url": CUTVIDEO_BASE_URL,
**probe_http(CUTVIDEO_BASE_URL, "/api/bootstrap"),

View File

@@ -61,7 +61,7 @@
- 从任务详情直接衔接 AI 视频 / 实拍剪辑 / 文案生成
- 在生产中心 / 发布与复盘常驻最近一次任务详情摘要
- 在 Web 中直接创建和编辑复盘
- 在页面里直接看到 `cutvideo / huobao / n8n / ASR` 的真实健康状态
- 在页面里直接看到 `本机模型 / cutvideo / huobao / n8n / ASR` 的真实健康状态
- 依赖不可达时,自动拦住 AI 视频 / 实拍剪辑动作并展示原因
- 使用 Agent 生成文案
- 创建 AI 视频任务

View File

@@ -32,8 +32,13 @@ const appState = {
lastJobDetail: null
};
const INTEGRATION_ORDER = ["cutvideo", "huobao", "n8n", "asr"];
const INTEGRATION_ORDER = ["local_model", "cutvideo", "huobao", "n8n", "asr"];
const INTEGRATION_META = {
local_model: {
label: "本机模型",
hint: "OpenAI-compatible",
impacts: ["账号分析", "高分分析", "文案生成"]
},
cutvideo: {
label: "自动剪辑",
hint: "Windows cutvideo",