dsh-draw
Unified static-image generation router for DeepSeek Harness: one image_generate tool with standard parameters, config-driven OpenAI-compatible engine routing (OpenAI Images, Zhipu CogView, and any compatible endpoint) with health-aware fallback, durable workspace attachment results, per-session quota accounting, an in-conversation result card, and a Plugins settings panel that stores API keys as credential references.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-draw说明文档
阅读完整 README ↗Configuration
All tunables are Schemastery Config fields (changeable from cordis.yml). An id-targeted override replaces the whole row — restate every key you need. cordis.patch.yml documents each key inline.
| Key | Default | Meaning |
|---|---|---|
engines | OpenAI + CogView presets | Ordered engine chain, walked top-down with fallback; each entry: id, baseUrl (no credentials), model, apiKeyRef (env-var name), provider (openai/replicate/fal, default openai), enabled, sizeMap, qualitySupported, styleSupported, responseFormat (b64_json/url), imageMediaType |
defaultEngine | openai | Engine id the router prefers; must name a configured engine |
requestTimeoutMs | 120000 | Per-generation HTTP timeout (1000..600000) |
maxImagesPerCall | 4 | Cap on images one call may produce (1..10) |
maxPromptLength | 4000 | Prompt length cap in characters (1..32000) |
maxGenerationsPerSession | 200 | Per-session generation-call cap (1..100000) |
maxBytesPerSession | 209715200 | Per-session image-byte cap (1048576..4294967296) |
failureThreshold | 2 | Consecutive failures before an engine enters cooldown (1..10) |
cooldownMs | 60000 | Engine cooldown after the threshold trips (1000..3600000) |
Example override in your profile patch:
- insert:
- id: dsh-draw
name: dsh-draw
config:
defaultEngine: cogview
maxImagesPerCall: 2