Luck9Star/dsh-gateway-provider
Luck9Star★ 0JavaScript最后同步: 2026-08-14
Generic LLM gateway provider plugin for DeepSeek Harness: newapi / LiteLLM / Higress / any OpenAI-compatible gateway, multi-protocol (OpenAI/Anthropic/Gemini) via pi-ai SDK, models.dev enrichment
README 摘要
dsh-gateway-provider 中文文档:README.zh.md Bring any LLM gateway — newapi, LiteLLM, Higress, or any OpenAI-compatible endpoint — into DeepSeek Harness. The plugin discovers the gateway's model list automatically, enriches every model with real parameters from models.dev, and serves each model over its native wire protocol (OpenAI / Anthropic / Gemini) through the pi-ai SDK. Why this exists DeepSeek Harness ships first-party adapters ( llm-deepseek , llm-pi-ai ) that each speak for one provider. If your models live behind a gateway, the alternative is a hand-maintained static model list with guessed context windows and output caps. This plugin mounts the gateway itself: N gateways become N provider routes, with zero static model lists. Every model keeps its true parameters, and adding a model on the gateway side is enough — nothing to re-deploy. What you get - Multiple gateways — a default newapi route plus one gateway: route per extra gateway, each with its own catalog cache. - Automatic discovery — GET {base}/v1/models first (including each model's supported request formats), management API fallback second. - Real parameters — models.dev data fills context window, output cap, reasonin…
在 GitHub 查看完整 README →