Merged
Conversation
- 新增 routes/newapiMonitor.js:提供 NewAPI 用量监控接口(请求数、Token、Quota、RPM/TPM、趋势、模型维度聚合等) - 新增 NEWAPI_MONITOR 前端接入与配置说明文档 - 新增 Plugin/config.env.example 配置模板 - server.js:添加只读仪表板接口白名单,免登录失败计数和 IP 封禁;移除冗余 plugin_async_callback 广播 - adminPanelRoutes.js:挂载 newapiMonitor 路由 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
将 Plugin/config.env.example 覆盖到根目录,保留完整的 NEWAPI_MONITOR 配置段,删除 Plugin 下的副本。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- newapiMonitor.js 从 routes/ 移至 routes/admin/,与其他管理路由统一 - 鉴权方式由 session cookie / 用户名密码 简化为系统访问令牌 (access token) - config.env.example 同步更新鉴权配置项 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
routes/newapiMonitor.js:提供 NewAPI 用量监控接口(总请求数、Token、Quota、实时 RPM/TPM、趋势数据、模型维度聚合等)/admin_api/newapi-monitor等),避免前端轮询触发登录失败计数和 IP 封禁Plugin/config.env.example配置模板和NEWAPI_MONITOR_前端接入与配置说明.md文档server.js中冗余的plugin_async_callback广播(与 WebSocket 推送重复)Test plan
/admin_api/newapi-monitor/*接口正常返回监控数据🤖 Generated with Claude Code