Repository navigation
v2.2.0 — Native SIWC Catalog, Speed Tier & Bilingual UI
·
7 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
English
dsh-chatgpt-siwc@2.2.0 is live on npm (latest) with portable siwc-core bundled, 637/637 tests passing across 35 files, green GitHub Actions CI on Node 22 & 24, and zero production audit vulnerabilities.
Highlights
- Speed Tier (
serviceTier):defaultomitsservice_tieron the wire (zero-byte delta vs2.1.0), whilepriority(Fast) is capability-gated per model and backed by a one-shot400fallback that persists unsupported tiers locally. - Shared Catalog Merge (
mergeCatalogModels): All three catalog-write paths (SiwcClient.rebuildCatalog,dsh-chatgpt-siwc models, anddiscover --refresh) merge byslugso thindata[]responses never erase known capabilities or localunsupportedServiceTiers. - Offline Discovery Fallback & Rich Composer Metadata:
registerModelDiscoveryfalls back to cached models on network error/timeout and passescontextWindow,inputModalities, model descriptions, and per-effort descriptions to DeepSeek Harness. - Context Budget &
modelOverridesClamping: PrecedencemodelOverrides[slug].contextWindow>contextBudget> catalogcontext_window, clamped to the disclosedcontext_windowand reported strictly viaresolveModel().context.contextWindow(never touching the prompt prefix). includeHiddenModels& Utility-Slug Filter: Retainsvisibility: "hide"rows in cache and filters them at read time while keeping non-chat utility slugs (codex-auto-review,gpt-reserve) excluded unless explicitly overridden.- Upgraded Bilingual Settings Card (
SiwcCard) & Safe RPC: ExposesserviceTier,contextBudget,modelOverrides,includeHiddenModels, an account-scoped cached catalog table with Refresh Catalog, live local Cache Hit %, and passivex-codex-*/x-ratelimit-*usage-window headers — while keepingCatalogModel.raw(base_instructions) strictly local. - Accurate
siwc_discoverCapabilities: DerivestextOnlyInput/surfaceImageInputdirectly fromSERIALIZABLE_INPUT_MODALITIES.
Live Telemetry & Probes
- Live DSH session cache hit rate: 98% at
10,353,568tokens and 97% at17,641,483tokens (17,071,616cached,491,419uncached) — measured in live DeepSeek Harness sessions (same-task Codex CLI A/B is separate). - Live
priority& mid-session switch probes: Verifiedservice_tier: "priority"(200 OK) and confirmed that switchingserviceTierormodelmid-session lands on a cold cache for the switched turn.
Links
- npm: https://www.npmjs.com/package/dsh-chatgpt-siwc
- Wiki: https://github.com/calisweetleaf/dsh-siwc-native/wiki
- Changelog: CHANGELOG.md
简体中文
dsh-chatgpt-siwc@2.2.0 已发布至 npm(latest):内置可移植 siwc-core,35 个测试文件 637/637 全部通过,Node 22 与 24 上的 GitHub Actions CI 全绿,生产依赖零漏洞。
核心更新
- 速度档位(
serviceTier):default在请求体中省略service_tier(与2.1.0零字节差异);priority(Fast)按模型能力门控,并在上游返回400时执行单次回退且在本地持久化不支持标记。 - 共享目录合并(
mergeCatalogModels):全部三条目录写入路径(SiwcClient.rebuildCatalog、dsh-chatgpt-siwc models、discover --refresh)均按slug合并,确保瘦data[]响应不会抹掉已知能力或本地unsupportedServiceTiers。 - 离线发现回退与完整选择器元数据:
registerModelDiscovery在网络错误或超时时回退至本地缓存目录,并向 DeepSeek Harness 传递contextWindow、inputModalities、模型说明与按力度说明。 - 上下文预算与
modelOverrides钳位:按modelOverrides[slug].contextWindow>contextBudget> 目录context_window解析,钳位至模型公开的context_window,仅通过resolveModel().context.contextWindow上报,绝不改写提示前缀。 includeHiddenModels与工具模型过滤:缓存保留visibility: "hide"模型并在读取时过滤,默认排除非对话工具模型(codex-auto-review、gpt-reserve),除非你在modelOverrides中显式列出。- 双语设置卡片(
SiwcCard)与安全 RPC:提供serviceTier、contextBudget、modelOverrides、includeHiddenModels、带刷新目录按钮的账户级缓存模型表、本地缓存命中率 %,以及被动采集的x-codex-*/x-ratelimit-*用量窗口;CatalogModel.raw(含base_instructions)严格留存本地,绝不跨 RPC 传出。 - 准确的
siwc_discover能力标志:textOnlyInput与surfaceImageInput直接从SERIALIZABLE_INPUT_MODALITIES派生。
实测遥测与探针结果
- 实时 DSH 会话缓存命中率:
10,353,568tokens 时为 98%,17,641,483tokens 时为 97%(17,071,616cached /491,419uncached)——均为实时 DeepSeek Harness 会话实测(同任务 Codex CLI A/B 对比另行独立进行)。 - 实时
priority与会话中途切换探针:已验证service_tier: "priority"(200 OK),并确认会话中途切换serviceTier或模型会在切换轮落在冷缓存上。