Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(model-access): explain audio catalog compatibility timeline

JiangJiahao6323d8c8a829
diff --git a/apps/desktop/src/main/model-access/modelsSyncRefresh.ts b/apps/desktop/src/main/model-access/modelsSyncRefresh.ts
index d481b89595..e370338567 100644
--- a/apps/desktop/src/main/model-access/modelsSyncRefresh.ts
+++ b/apps/desktop/src/main/model-access/modelsSyncRefresh.ts
@@ -82,7 +82,10 @@ export function buildModelsSyncRequest(baseUrl: string | (() => string)): {
options: {
baseUrl,
timeoutMs: XD_MODELS_SYNC_TIMEOUT_MS,
- // Older v5 clients reject standalone audio; older servers safely ignore this opt-in.
+ // Client V5 requests landed in cbb830cb6 (2026-08-27); standalone audio parsing
+ // followed in 5c47051ac (2026-09-10). Earlier V5 parsers reject the whole list
+ // for audio_speech with agents: [], so schemaVersion=5 alone cannot prove support.
+ // This declares parser support only; older servers safely ignore the opt-in.
headers: { 'X-Cindy-Model-Capabilities': 'audio_speech' },
// 模型权限随订阅权益变化,强制刷新不能命中 Electron HTTP cache。
cache: 'no-store',
diff --git a/docs/model-registry-v4-media.md b/docs/model-registry-v4-media.md
index abc593d624..90789d35b9 100644
--- a/docs/model-registry-v4-media.md
+++ b/docs/model-registry-v4-media.md
@@ -103,6 +103,18 @@ V1–V3 解析保持原有契约;新媒体字段、媒体原生协议和空 Ag
旧服务端忽略该请求头,当前客户端继续接受原有 V5 响应。该能力声明不改变 Gateway 授权、
付费解锁或组织权限,也不声明客户端已有 TTS 执行器。
+兼容边界来自客户端代码演进(以下为提交日期,时区 UTC+08:00,不代表部署或用户升级日期):
+
+- **2026-08-27**:[cbb830cb6](https://github.com/makecindy/cindy/commit/cbb830cb6aad5f2ad0a8450540a943dd6c4f4a2a)
+ 已将账号模型目录请求切换到 V5。
+- **2026-09-10**:[5c47051ac](https://github.com/makecindy/cindy/commit/5c47051ac0fe9554c085632ab6f9eb8f69191d63)
+ 才允许独立音频模型使用 `agents: []`。
+
+历史解析器复现:`5c47051ac^` 可以接受原有 V5 列表,但加入 `audio_speech` 后拒绝整份响应;
+`5c47051ac` 及当前解析器接受同一响应。因此不能向所有 V5 请求无条件下发音频。
+本次用能力声明区分解析能力;已支持音频但未携带声明的客户端也继续收到原目录。
+两端可独立合并和发布,没有顺序要求;完整音频目录仍须两端支持且通过既有上游可见性规则。
+
相同 `registrySchemaVersion=4` 或 `schemaVersion=5` 请求不能证明
客户端认识本次扩展。公共目录请求必须同时声明 `registryMedia=1`,服务端只向明确声明
该能力的 V4/V5 请求返回完整目录(V4 仍展开 V5 官方价格)。无标识、未知标识、重复参数