xiaozhe7772222/dsh-draw-router2

dsh-draw-router

DSH 统一绘图路由器:自动识别任意 OpenAI 兼容端点的绘图模型,支持商汤、阶跃、通义、混元、Flux 等多模型路由。

AI 分析

核心用途是聚合和统一调度各种主流 AI 绘图服务。适合需要一站式调用不同厂商生图模型,且希望自动适配标准接口的创作者和开发者。

包名
dsh-draw-router
版本
0.1.1
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaozhe7772222/dsh-draw-router

⚙️ 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/generations and /models automatically.

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(运行时)