xiaozhe7772222/dsh-draw-router2

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 等。

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