dsh-provider-config
安全与治理 活跃维护

dsh-provider-config

cslht11/dsh-provider-config

提供LLM供应商配置模板,内置限流、重试机制的最佳实践方案,已完成SenseNova脱敏处理,可直接复用,快速完成多供应商接入的配置工作。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
Other
主要语言
MIT
开源协议
11 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:cslht11/dsh-provider-config
git clone https://github.com/cslht11/dsh-provider-config.git
git clone git@github.com:cslht11/dsh-provider-config.git
README.md main

DSH Provider Config

Field-tested LLM provider configuration templates and rate-limit retry best practices for DeepSeek Harness (DSH). Currently focused on SenseNova (商汤 Token Plan), structured to extend to any OpenAI-compatible provider.

Why this project

DSH configures LLM providers via ~/.dsh/settings.yaml. The most critical — yet most overlooked — piece is retryPolicy. It decides:

  • Whether a task auto-recovers when hitting rate limits (HTTP 429 / RATE_LIMIT)
  • How long retries continue before giving up, and whether it can hang forever
  • Whether persistent provider failures surface an error you can actually diagnose

This project distills these settings into ready-to-use templates and explains what every parameter means and the tradeoffs.

Contents

Path Description
config/sensenova.yaml Ready-to-use SenseNova provider template (copy into ~/.dsh/settings.yaml)
docs/retry-policy.md Retry mechanics in depth: normal vs always, exponential backoff, jitter, retry-count tradeoffs
docs/troubleshooting.md Rate-limit troubleshooting: telling short bursts from persistent problems

Quick start

  1. Open the template: config/sensenova.yaml
  2. Read the retry mechanics: docs/retry-policy.md
  3. Copy what you need into your ~/.dsh/settings.yaml
  4. Restart DSH, and enjoy automatic retry on rate limits

Configuration template

See config/sensenova.yaml. The template contains no real API keys — keys are referenced exclusively through the environment variable SENSENOVA_API_KEY.

Retry policy at a glance

  • Recommended: mode: normal + maxRetries: 15 + retryableCodes: [RATE_LIMIT, TIMEOUT, SERVER, TRANSPORT]
  • Exponential backoff initialDelayMs → maxDelayMs with jitter to avoid thundering-herd
  • Full tradeoff analysis in docs/retry-policy.md

License

MIT — see LICENSE.

Security

This project never contains real API keys. Keys are referenced only by environment-variable name (e.g. SENSENOVA_API_KEY); templates contain nothing but the env-var name. See SECURITY.md.