mirror of
https://mirror.skon.top/github.com/sliverp/qqbot
synced 2026-05-01 06:10:58 +08:00
docs: update streaming default to false and remove streamingConfig in changelogs
This commit is contained in:
@@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
||||
- **Stream message API `sendC2CStreamMessage`**: Low-level wrapper for QQ Open Platform `/v2/users/{openid}/stream_messages` endpoint, with `replace` input mode, incremental `msg_seq`/`index`, and `GENERATING`/`DONE` state signaling.
|
||||
- **`ApiError` structured error class**: API request errors now carry `status` (HTTP code) and `path`, enabling callers (e.g. streaming controller) to branch on status for retry vs. fallback decisions.
|
||||
- **Media send queue module `media-send.ts`**: Extracted media-tag parsing, path-encoding fix, and send-queue execution into a shared utility used by both `outbound.ts` (static mode) and `streaming.ts` (streaming mode), eliminating ~100 lines of duplication.
|
||||
- **Streaming configuration**: New `streaming` (boolean, default `true`) and `streamingConfig.throttleMs` options in account config for per-account streaming control.
|
||||
- **Streaming configuration**: New `streaming` (boolean, default `false`) option in account config for per-account streaming control. Set `streaming: true` to enable.
|
||||
- **Unit tests**: Added `strip-incomplete-media-tag.test.ts` and `streaming-controller.test.ts`.
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
- **流式消息 API `sendC2CStreamMessage`**:封装 QQ 开放平台 `/v2/users/{openid}/stream_messages` 接口,支持 `replace` 输入模式、递增 `msg_seq`/`index` 序号、`GENERATING`/`DONE` 状态信令。
|
||||
- **`ApiError` 结构化错误类**:API 请求错误现在携带 `status`(HTTP 状态码)和 `path`,使调用方(如流式控制器)可根据状态码决定重试或降级策略。
|
||||
- **媒体发送队列模块 `media-send.ts`**:将媒体标签解析、路径编码修复、发送队列执行器抽取为公共工具模块,供 `outbound.ts`(静态模式)和 `streaming.ts`(流式模式)共用,消除约 100 行重复代码。
|
||||
- **流式消息配置项**:账户配置新增 `streaming`(布尔值,默认 `true`)和 `streamingConfig.throttleMs` 选项,支持按账户控制流式消息开关和节流间隔。
|
||||
- **流式消息配置项**:账户配置新增 `streaming`(布尔值,默认 `false`)选项,设置为 `true` 可开启流式消息。
|
||||
- **单元测试**:新增 `strip-incomplete-media-tag.test.ts` 和 `streaming-controller.test.ts`。
|
||||
|
||||
### 变更
|
||||
|
||||
Reference in New Issue
Block a user