SnowNight777/dsh-llm-gateway ↗★ 0
dsh-llm-gateway
将 DSH 已配模型以 OpenAI 兼容接口共享给本机程序的网关 适合想免配置直接用本地其他程序调用 DSH 已有模型的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SnowNight777/dsh-llm-gateway说明文档
阅读完整 README ↗配置
| 键 | 默认 | 说明 |
|---|---|---|
host | 127.0.0.1 | 别改成 0.0.0.0,除非同时配 apiKeys |
port | 8790 | 监听端口;改动会重建 HTTP 服务 |
defaultModel | (空) | 请求没带 model 时使用;留空则强制显式指定 |
apiKeys | [] | 非空则校验 Authorization: Bearer 或 x-api-key(定长比较) |
excludeProviders | [] | 从目录剔除的 provider id |
excludeModels | [] | 从目录剔除的 model id 或 provider/model |
catalogTtlMs | 30000 | 目录缓存时长;未命中会强制刷新一次 |
reasoningAsContent | true | 上游只出 reasoning 不出 text 时,把 reasoning 兜底当 content |
requestLog | true | 每个请求打一行 方法 路径 -> 状态 (耗时) |
maxBodyBytes | 8388608 | 请求体上限 |