ShiXiangYu2 / dsh-imagegen-plugin

已收录

DeepSeek Harness plugin: generate_image tool (Qwen-Image / DeepSeek Janus-Pro-7B via SiliconFlow).

main工具 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:ShiXiangYu2/dsh-imagegen-plugin

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 da9402d同步于 2026年8月18日

dsh-imagegen-plugin

A DeepSeek Harness plugin that registers a generate_image tool callable by the model.

  • Plugin ID: imagegen
  • Tool: generate_image(prompt, model?, image_size?, ...) → returns an image URL (valid up to 24 h)
  • Default model: Qwen/Qwen-Image (also supports deepseek-ai/Janus-Pro-7B, Kwai-Kolors/Kolors, Tongyi-MAI/Z-Image-Turbo)
  • Backend: SiliconFlow Images API

Prerequisite: API key

Set the SILICONFLOW_API_KEY environment variable (register a free key at https://cloud.siliconflow.cn):

export SILICONFLOW_API_KEY=sk-xxxxxxxx

Install

Bundle form, local checkout:

dsh plugin --profile demo add ./imagegen-plugin

From git (no build step required — ships plain ESM):

dsh plugin --profile demo add github:you/dsh-imagegen-plugin

From npm (prebuilt):

dsh plugin --profile demo add dsh-imagegen-plugin

Verify the layer without starting:

dsh --profile demo --dump-config   # shows a "# == dsh-imagegen-plugin" layer

Then start with the key and ask the model:

SILICONFLOW_API_KEY=sk-xxx dsh --profile demo
Generate an image of a red panda eating bamboo.

Structure

imagegen-plugin/
├── package.json       # declares dsh.bundle
├── cordis.patch.yml   # the layer applied when a profile lists this bundle
└── index.js           # plugin module: registers the generate_image tool

License

MIT

仓库信息

开发语言
JavaScript
许可证
未提供
最后更新
2026年8月15日 02:05

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。