xiaozhe7772222/dsh-draw-router ↗★ 2
dsh-draw-router
DSH 统一绘图路由器:自动识别任意 OpenAI 兼容端点的绘图模型,支持商汤、阶跃、通义、混元、Flux 等多模型路由。
AI 分析
核心用途是聚合和统一调度各种主流 AI 绘图服务。适合需要一站式调用不同厂商生图模型,且希望自动适配标准接口的创作者和开发者。
安装
$
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(运行时)