dsh-context-length

dsh-context-length 是一个 DSH(DeepSeek Harness)设置页插件。它会在设置面板「模型」的正下方新增一个「上下文长度」页面:从已配置的渠道(提供方)中选一个,再选该渠道下的某个模型,填一个上下文窗口数值(支持 131072、256K、1M 等写法),点击「保存」后才会写入 settings.yaml 并立即生效。未配置的内置渠道不会出现在列表里;已自定义的模型会集中展示在页面底部,并支持一键「恢复默认」。整个页面完全走官方设置接口,宿主端始终是唯一事实源,安全且无副作用。

其他用途MIT☆ 2

插件介绍

dsh-context-length 是一个 DSH(DeepSeek Harness)设置页插件。它会在设置面板「模型」的正下方新增一个「上下文长度」页面:从已配置的渠道(提供方)中选一个,再选该渠道下的某个模型,填一个上下文窗口数值(支持 131072、256K、1M 等写法),点击「保存」后才会写入 settings.yaml 并立即生效。未配置的内置渠道不会出现在列表里;已自定义的模型会集中展示在页面底部,并支持一键「恢复默认」。整个页面完全走官方设置接口,宿主端始终是唯一事实源,安全且无副作用。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-context-length

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:AiLi1337/dsh-context-length

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。