Skip to content

ChatSpeed v1.1.25

Choose a tag to compare

@github-actions github-actions released this 28 Jan 06:17

[1.1.25] - 2026-01-28

🚀 New Features

  • New Proxy Statistics Feature:
    • Comprehensive Data Monitoring: The system now automatically records all requests passing through the proxy module, including Client Model Alias, actual Backend Model ID, provider, protocol, and HTTP status code.
    • Dual-Mode Persistence: Statistics are captured for both protocol conversion and direct forward modes, including detailed error logs for failed requests.
    • Precise Token Tracking: Supports cumulative input, output, and cache token counts. Implemented intelligent estimation logic based on character counts as a fallback when providers do not return usage data.
  • Brand New Visual Analytics Dashboard:
    • Advanced Charting: Added Backend Model Distribution (Pie), Error Code Distribution (Pie), and Daily Token Trends (Stacked Column).
    • Interactive Dashboard: A new "Statistics" tab in Proxy Settings supports daily summaries and multiple time ranges (Last 24h, 7d, 30d, 90d).
    • Detailed Drill-down: Expand daily logs to view "Statistics Details," showing the mapping between model aliases and actual backend providers.
    • Rapid Error Diagnostics: Click on error counts to instantly view the distribution of error codes and specific failure reasons for that date.

🪄 Improvements

  • UI/UX Interaction Enhancements:
    • Instant Data Refresh: Added a refresh button with row-key optimization to ensure statistical data and charts sync and re-render instantly.
    • Refined Scrolling: Disabled horizontal overscroll bounce effects for a crisper feel. Fixed the expansion column to the left and optimized column widths with text-overflow tooltips.
    • Smart Unit Formatting: Large token counts are now automatically converted to "Ten Thousand" (万) or "Hundred Million" (亿) with thousands separators.
  • System Architecture & Robustness:
    • Database Evolution: Implemented V4 migration with the ccproxy_stats table and indexes on key fields like request_at and provider for high-performance queries.
    • Enhanced Error Defense: Backend SQL queries now use COALESCE protection to eliminate type-parsing errors caused by malformed or missing data.
    • Memory Management: Automatic destruction of chart instances upon component unmounting to prevent memory leaks.

[1.1.25] - 2026-01-28

🚀 新特性

  • 新增代理统计功能:
    • 全量数据监控:现在系统会自动记录所有通过代理模块的请求,包括请求的模型别名(客户端)、实际调用的模型 ID(后端)、供应商、协议及 HTTP 状态码。
    • 双模式统计入库:无论是协议转换模式还是直连转发模式,均已实现自动统计,并支持记录详细的错误信息。
    • 精准 Token 追踪:支持记录累计输入、输出及缓存 Token 数;当供应商未返回数据时,系统会自动启用基于字符计数的智能估算逻辑进行兜底。
  • 全新可视化统计看板:
    • 多维度图表分析:新增后端模型使用分布(饼图)、错误代码分布(饼图)及每日 Token 消耗趋势(堆叠柱状图)。
    • 可视化看板:在代理设置页面新增“统计信息”标签页,支持按天汇总及最近 24 小时/7天/30天/90天多跨度切换。
    • 深度下钻详情:支持展开每日统计查看“统计详情”,清晰展示模型别名与后端模型的映射关系及各项指标。
    • 错误快速定位:支持点击错误次数直接查看该日期下的错误码分布及具体错误原因。

🪄 改进

  • UI/UX 交互优化:
    • 数据即时刷新:新增一键刷新按钮,配合 row-key 优化,确保统计数据与图表能够即时同步渲染。
    • 列表滚动增强:禁用了表格的越界回弹效果(Overscroll),滑动体验更干脆;固定了展开列至左侧,并优化了列宽和文本溢出处理。
    • 智能单位换算:Token 数量支持自动换算为“万”或“亿”单位,并增加千分位分隔符,大额数据展示更直观。
  • 系统架构稳健性:
    • 数据库演进:引入 V4 数据库迁移逻辑,新增 ccproxy_stats 表并配置了 request_at、provider 等关键字段索引,确保海量数据下的查询性能。
    • 错误防御增强:后端 SQL 查询全面采用 COALESCE 保护,彻底杜绝了因脏数据或空值导致的类型解析错误。
    • 内存管理优化:在前端组件卸载时自动销毁图表实例,防止内存泄漏。