dsh-plugin-custom-provider-enhancer
在终端中运行以下命令:
dsh plugin install cinob/dsh-plugin-custom-provider-enhancer
将以下提示词粘贴到 DeepSeek Harness 对话框中:
要在 DeepSeek Harness 中安装此插件,请在终端运行安装命令:dsh plugin install cinob/dsh-plugin-custom-provider-enhancer,其源码地址为:https://github.com/cinob/dsh-plugin-custom-provider-enhancer。
插件介绍
将 OneAPI、NewAPI 或 vLLM 等第三方网关接入 DeepSeek Harness 时,最大的痛点在于接口往往只返回原始的模型 ID,而忽略了至关重要的上下文窗口大小、最大 Token 数及多模态支持等参数。这导致在 Web 界面中无法准确测量 Token 压力,甚至因上下文溢出而中断对话。DSH Custom Provider Enhancer 通过拦截模型发现流程,自动从数据库中填充 Context Window、Max Output Tokens、Multimodal Vision 和 Deep Thinking 等关键规格,彻底解决了配置缺失的问题。
使用场景
- 接入 OneAPI 或 NewAPI 等第三方模型网关。
- 在对话界面中启用图片上传等视觉功能。
- 解决模型规格缺失导致的上下文溢出问题。
适合人员
- 使用 DeepSeek Harness 的开发者。
- 需要精确控制上下文窗口的用户。
- 管理多模型 API 网关的运维人员。