DSH Plugins
返回列表
🤖

dsh-gateway-provider

模型推理 更新于 2026.08.25

在终端中运行以下命令:

dsh plugin install Luck9Star/dsh-gateway-provider

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install Luck9Star/dsh-gateway-provider 即可安装本插件,完整源码地址为 https://github.com/Luck9Star/dsh-gateway-provider 。

插件介绍

DeepSeek Harness ships one adapter per official provider. When your models live behind a gateway such as newapi, LiteLLM, Higress, or any OpenAI-compatible endpoint, the manual workaround is a hand-maintained static model list with guessed context windows and output caps. dsh-gateway-provider mounts the gateway itself: at startup it pulls the live model list via GET /v1/models, then enriches every entry with real parameters from models.dev, so adding a model on the gateway side immediately surfaces it in dsh with no re-deploy and no YAML edits.

Each model is routed over its own native wire protocol—OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, or Gemini—translated by the same pi-ai SDK the official dsh adapter uses, so tool calls and streaming behave exactly as the model maker intended. You can register multiple gateways simultaneously, each with its own route, credential, and cache. Per-model overrides let you pin the protocol, tune context windows, exclude non-chat models by regex, and add fully custom entries, all through the Settings → Gateway Models web page. API keys are stored in dsh's credential store, never in configuration files.

If you manage dozens or hundreds of models through an LLM gateway, want each model to speak its own protocol, and refuse to maintain static model lists by hand, this plugin is built for that workflow. A single gateway API key is all you need to get started.

使用场景

  • 通过 newapi 或 LiteLLM 网关在 dsh 中统一使用多供应商模型
  • 让每个模型的请求按其原生协议(OpenAI、Anthropic、Gemini)发出,保证工具调用与流式输出正确
  • 在 dsh 设置页面可视化管理多个网关、测试连接、同步模型并逐项调整参数

适合人员

  • 通过 LLM 网关统一接入数十至上百个模型的工程团队
  • 需要按模型原生协议处理工具调用和流式输出的应用开发者
  • 希望摆脱手工维护静态模型列表与猜测参数的工作流的个人用户