feat(dashboard): 新增 Model Calling 实时状态模块,可视化每模型并发与排队深度#250
Merged
Conversation
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
在 Dashboard Overview 页面 KPI 卡片栏下方新增「Model Calling 实时状态」模块,实时展示各模型的并发占用与排队等待情况。
变更内容
后端 — 并发诊断数据通路搭建:
concurrency.py:get_diagnostics()新增pending字段,通过asyncio.Semaphore._waiters获取等待队列深度zhipu.py:重写get_diagnostics(),将ModelConcurrencyLimiter的并发快照数据接入/api/status端点的diagnostics.concurrency字段前端 — Dashboard 可视化模块:
vendor/model格式展示,包含并发进度条(绿/黄/红三档)和排队深度徽章/api/status,切换到 Sessions 标签时暂停、切回 Overview 时恢复测试
全量测试 1516 passed,0 failed,无回归。
🤖 Generated with Claude Code, CodeX, Gemini