snowshadow/dsh-llm-gateway-compat

snowshadow★ 0TypeScript最后同步: 2026-08-22

在 GitHub 打开

Community DSH plugin: OpenAI-compatible gateway adapter and dialect fixes (not an official DeepSeek package)

README 摘要

dsh-llm-gateway-compat English 中文 A community bundle compatible with DeepSeek Harness (DSH). It stops empty streamed tool-call identity from wiping the call, turns the two most common request 400s into an llm-pi-ai compat write plus one retry, and can own Chat Completions routes that default to system / max tokens . This is not an official DeepSeek package. It is not endorsed by DeepSeek. What it does Streamed tool-call identity (v0.1) Wraps llm/stream so later SSE fragments with empty id / name cannot overwrite a nonempty value. Synthesizes compat call when no id ever arrives. Official DeepSeek streams stay unchanged when identity is already stable. Request dialect 400s (v0.2) On agent/request-error , classifies developer -role and max completion tokens refusals, writes the matching field into official llm-pi-ai settings, retries the same step once, and injects a logged plugin notice. Generic 400s are not retried. Chat Completions adapter (v0.3) Optional routes under llm-gateway-compat.providers . Each route is a direct POST {baseURL}/chat/completions adapter with gateway-safe defaults: - system prompt is always role: system - output cap is always max tokens - empty tool-call id/n…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-pluginllm

分类