PerryLink/dsh-draw6

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.

包名
dsh-draw
版本
0.2.14
许可证
Apache-2.0
最近更新
2026年9月12日

安装

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

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.

KeyDefaultMeaning
enginesOpenAI + CogView presetsOrdered 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
defaultEngineopenaiEngine id the router prefers; must name a configured engine
requestTimeoutMs120000Per-generation HTTP timeout (1000..600000)
maxImagesPerCall4Cap on images one call may produce (1..10)
maxPromptLength4000Prompt length cap in characters (1..32000)
maxGenerationsPerSession200Per-session generation-call cap (1..100000)
maxBytesPerSession209715200Per-session image-byte cap (1048576..4294967296)
failureThreshold2Consecutive failures before an engine enters cooldown (1..10)
cooldownMs60000Engine 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