v0.5.1
What's Changed
New Features
- HAR 协议深度集成: throttling/scores/patches/references/locale/plugins/metrics 全量透传
- X-M365-Throttling / X-M365-Scores / X-M365-Metrics 响应头: 所有流式路径统一输出
- Timestamps 精确计时: RequestSent / FirstServiceResponseReceived / FirstTokenReceived / LastTokenReceived
- 引用/引用标记清理: StripCitationMarkers + citations 元数据
- suggestedResponses 完整格式: HiddenText / MessageID / Author / CreatedAt / MessageType
- storageMessageId 透传
- X-M365-Locale / Market / TimeZone / DeviceOS 请求头覆盖
- allowedMessageTypes 更新为 HAR 完整列表 (30 种消息类型)
- GET /api/plugins 端点: EventListener/Client API 代理,5 分钟缓存
Performance
- ConnPool 多连接池替代 Preheater: TTFB 从 3.7s 降至 170ms (稳定态)
- 启动时预热连接池: 冷启动 TTFB 从 3.7s 降至 190ms
Fixes
- P0 内容策略检测全覆盖: 两条流式路径均发送 SSE error + return,不再静默透传
- finish 变量修正: err!=nil 时设为 error (原为死代码 stop 分支)
- 移除过于宽泛的英文误判模式: I'm sorry, I can't / I cannot 不再误报
- 统一错误消息: M365 content policy blocked this request; try again or switch account
- Header 命名统一为 X-M365- title-case*
License
- MIT → AGPL-3.0 + Non-Commercial API Relay Restriction: 禁止商业 API 中继转售
Full Changelog: v0.5.0...v0.5.1
Full Changelog: v0.5.0...v0.5.1