xiaozhe7772222/dsh-draw-router ↗★ 2
dsh-draw-router
Unified image generation router for DeepSeek Harness (DSH). Auto-discovers image models from any OpenAI-compatible endpoint. Supports SenseNova, StepFun, Agnes, Qwen, Tongyi Wanxiang, Jimeng/Seedream, Hunyuan, GPT Image, Flux, Stable Diffusion, Imagen, and more. | DeepSeek Harness 统一绘图路由器:自动识别任意 OpenAI 兼容端点的绘图模型,支持商汤、阶跃〃Agnes、千问、通义万相、即梦、混元、GPT Image、Flux、Stable Diffusion、Imagen 等。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaozhe7772222/dsh-draw-router说明文档
阅读完整 README ↗⚙️ Configuration
Option 1: Static config via cordis.patch.yml
- insert:
- id: draw-router
name: dsh-draw-router
inject: [tools, webServer]
config:
sources:
stepfun:
baseUrl: https://api.stepfun.com/v1
apiKey: your-stepfun-key
sensenova:
baseUrl: https://token.sensenova.cn/v1
apiKey: your-sensenova-key
agnes:
baseUrl: https://apihub.agnes-ai.com/v1
apiKey: your-agnes-key
baseURL hint: give the API root (e.g.
https://api.stepfun.com/v1). The plugin appends/images/generationsand/modelsautomatically.
Option 2: REST API (runtime)
### ⚙️ 配置说明
#### 方式一:静态配置(cordis.patch.yml)
```yaml
- insert:
- id: draw-router
name: dsh-draw-router
inject: [tools, webServer]
config:
sources:
stepfun:
baseUrl: https://api.stepfun.com/v1
apiKey: your-stepfun-key
sensenova:
baseUrl: https://token.sensenova.cn/v1
apiKey: your-sensenova-key
agnes:
baseUrl: https://apihub.agnes-ai.com/v1
apiKey: your-agnes-key
baseURL 提示:填 API 根地址(如
https://api.stepfun.com/v1)。插件会自动补全/images/generations和/models。
方式二:REST API(运行时)