dong2007-png/dsh-imagegen ↗★ 0
dsh-imagegen
生成图片:通过 New API 中转站(guaihub 等)调用 OpenAI 风格 /v1/images/generations,并把图片直接显示在 DSH 对话里。 适合需要在对话中直接生成并预览图片的用户,需配置兼容OpenAI的绘图接口。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dong2007-png/dsh-imagegenREADME
Read the full README ↗配置
宿主侧 Config(可在 DSH 的插件配置界面里改,或写进 profile 的 cordis.patch.yml):
| 键 | 默认值 | 说明 |
|---|---|---|
baseURL | https://guaihub.com | 中转站地址 |
apiKeyEnv | GUAIHUB_API_KEY | 密钥名;通过 DSH 的 credentials 服务解析(进程 env → provider 托管存储 → .env),失败再退回 ~/.dsh/.credentials.yaml |
defaultModel | gpt-image-2 | 默认图片模型 |
defaultSize | 1024x1024 | 默认尺寸 |
outputDir | images | 落盘目录(相对会话工作目录) |
saveFiles | true | 是否把图片写到磁盘 |
timeoutMs | 300000 | 请求超时 |
cordis.patch.yml 覆盖示例:
- id: dsh-imagegen
config:
defaultModel: gpt-image-2.5-flare
outputDir: images/gen