Repository navigation
v2.3.0 — Per-Model Image Input, Localized Store Refusals & Full 28-Page Bilingual Wiki
Latest
·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
English
dsh-chatgpt-siwc@2.3.0 adds per-model surface image input on the official Sign in with ChatGPT (SIWC) Responses route, restores localized account-mismatch store refusals, hardens the standalone CLI boundary for pnpm-installed DSH profiles, and publishes the full 28-page bilingual Wiki (English / 简体中文). 672/672 tests passing across 37 files (0 production vulnerabilities).
Added & Fixed in 2.3.0
- Per-model surface image input (
src/images.ts,src/serialize.ts,src/adapter.ts): Surface images in user messages are sent asinput_imagedata:URLs (preceded by DSH'srequestImageHandleText) to models whose catalog row disclosesimageinput (SERIALIZABLE_INPUT_MODALITIES = ['text', 'image']). Validated before send (PNG/JPEG/WEBP/GIF by reference and magic number; 20 MiB per image; 64 MiB base64 per request withIMAGE_OFFLOAD_REQUIREDoffload signaling). Images ride strictly in user input items afterinstructions, leaving the cached system prefix untouched. - Restored localized store account-mismatch errors (
src/store.ts,siwc-core/locales/errors): RestoredCATALOG_ACCOUNT_CHANGED(catalogAccountChanged) in English and Simplified Chinese, and localizedUSAGE_ACCOUNT_CHANGED/USAGE_WINDOW_ACCOUNT_CHANGED. - Standalone CLI boundary in
pnpmDSH profiles (src/modalities.ts): Keptlib/bin.jsandlib/discover.jscompletely free of runtime@deepseek-ai/*imports so CLI commands (login,status,models,discover,doctor) run cleanly inside~/.dsh/profiles/web. - Full 28-page bilingual Wiki (
docs/wiki/& GitHub Wiki): Dedicated English and Simplified Chinese pages covering Install, Sign-in & Accounts, Configuration, Models & Catalog, Prompt Cache, Route & Compliance, Architecture, CLI & Doctor, Troubleshooting (including the sign-in stop-step matrix), FAQ, Changelog, and Contributing (including thezh-CNtranslation glossary). - Cache arithmetic documentation (
96.8%): Clarified Session B's exact17,071,616 / 17,641,483 = 96.8%cache hit figure and documented the unexplained78,448-token uncached gap transparently.
Links
- npm: https://www.npmjs.com/package/dsh-chatgpt-siwc
- Wiki (28 pages, EN / 简体中文): https://github.com/calisweetleaf/dsh-siwc-native/wiki
- Changelog: CHANGELOG.md
简体中文
dsh-chatgpt-siwc@2.3.0 在官方 Sign in with ChatGPT(SIWC)Responses 路线上新增按模型门控的表面图片输入,恢复本地化的账户变更存储拒绝错误,加固 pnpm DSH profile 下的独立 CLI 模块边界,并发布完整的 28 页双语 Wiki(English / 简体中文)。37 个测试文件 672/672 全部通过(生产依赖零漏洞)。
2.3.0 新增与修复
- 按模型门控的表面图片输入(
src/images.ts、src/serialize.ts、src/adapter.ts):对目录条目声明支持image输入的模型,用户消息中的表面图片会以input_imagedata:URL(前置 DSH 的requestImageHandleText)发送(SERIALIZABLE_INPUT_MODALITIES = ['text', 'image'])。发送前按引用和文件头魔数校验 PNG/JPEG/WEBP/GIF,单张上限 20 MiB,单次请求 base64 合计上限 64 MiB(超出时返回IMAGE_OFFLOAD_REQUIRED由 DSH 卸载旧图片)。图片只出现在顶层instructions之后的用户输入项中,绝不触碰缓存的系统前缀。 - 恢复本地化的账户变更存储拒绝错误(
src/store.ts、siwc-core/locales/errors):恢复中英文CATALOG_ACCOUNT_CHANGED(catalogAccountChanged),并同步本地化USAGE_ACCOUNT_CHANGED与USAGE_WINDOW_ACCOUNT_CHANGED。 pnpmDSH profile 下的独立 CLI 边界(src/modalities.ts):保持lib/bin.js与lib/discover.js在运行时零@deepseek-ai/*导入,确保login、status、models、discover、doctor在~/.dsh/profiles/web内独立正常运行。- 完整 28 页双语 Wiki(
docs/wiki/与 GitHub Wiki):提供中英文对应的安装、登录与账户、配置、模型与目录、提示缓存、路由与合规、架构、CLI 与 doctor、故障排查(含登录停止步骤排查表)、常见问题、更新日志与参与贡献(含简体中文翻译术语表)。 - 缓存算术核准(
96.8%):明确记录会话 B 的精确命中率17,071,616 / 17,641,483 = 96.8%,并如实说明未命中项的78,448token 差额。