dong2007-png/dsh-imagegen ↗★ 0

dsh-imagegen

生成图片:通过 New API 中转站(guaihub 等)调用 OpenAI 风格 /v1/images/generations,并把图片直接显示在 DSH 对话里。 适合需要在对话中直接生成并预览图片的用户,需配置兼容OpenAI的绘图接口。

Package
dsh-imagegen
Compatibility
Unverified
Harness peer range
*
Version
0.1.0
License
MIT
Last updated
Oct 1, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dong2007-png/dsh-imagegen

配置

宿主侧 Config(可在 DSH 的插件配置界面里改,或写进 profile 的 cordis.patch.yml):

键默认值说明
baseURLhttps://guaihub.com中转站地址
apiKeyEnvGUAIHUB_API_KEY密钥名;通过 DSH 的 credentials 服务解析(进程 env → provider 托管存储 → .env),失败再退回 ~/.dsh/.credentials.yaml
defaultModelgpt-image-2默认图片模型
defaultSize1024x1024默认尺寸
outputDirimages落盘目录(相对会话工作目录)
saveFilestrue是否把图片写到磁盘
timeoutMs300000请求超时

cordis.patch.yml 覆盖示例:

- id: dsh-imagegen
  config:
    defaultModel: gpt-image-2.5-flare
    outputDir: images/gen