Skip to content

feat(dashboard): 新增 Model Calling 实时状态模块,可视化每模型并发与排队深度#250

Merged
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/porto-v2
May 26, 2026
Merged

feat(dashboard): 新增 Model Calling 实时状态模块,可视化每模型并发与排队深度#250
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/porto-v2

Conversation

@ThreeFish-AI

@ThreeFish-AI ThreeFish-AI commented May 26, 2026

Copy link
Copy Markdown
Owner

概要

在 Dashboard Overview 页面 KPI 卡片栏下方新增「Model Calling 实时状态」模块,实时展示各模型的并发占用与排队等待情况。

变更内容

后端 — 并发诊断数据通路搭建:

  • concurrency.pyget_diagnostics() 新增 pending 字段,通过 asyncio.Semaphore._waiters 获取等待队列深度
  • zhipu.py:重写 get_diagnostics(),将 ModelConcurrencyLimiter 的并发快照数据接入 /api/status 端点的 diagnostics.concurrency 字段

前端 — Dashboard 可视化模块:

  • 在 KPI 卡片与供应商状态之间插入全宽「Model Calling 实时状态」卡片
  • 每个模型以 vendor/model 格式展示,包含并发进度条(绿/黄/红三档)和排队深度徽章
  • 独立 5 秒轮询 /api/status,切换到 Sessions 标签时暂停、切回 Overview 时恢复

测试

全量测试 1516 passed,0 failed,无回归。

🤖 Generated with Claude Code, CodeX, Gemini

@ThreeFish-AI ThreeFish-AI changed the title feat(dashboard): 新增 Model Calling 实时状态模块 feat(dashboard): 新增 Model Calling 实时状态模块,可视化每模型并发与排队深度 May 26, 2026
@ThreeFish-AI ThreeFish-AI merged commit 8e8d37f into feature/1.x.x May 26, 2026
6 checks passed
@ThreeFish-AI ThreeFish-AI deleted the ThreeFish-AI/porto-v2 branch May 26, 2026 09:50
@ThreeFish-AI ThreeFish-AI mentioned this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant