返回目录
文件与数据 插件

dsh-imagegen-plugin

ShiXiangYu2/dsh-imagegen-plugin

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

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:ShiXiangYu2/dsh-imagegen-plugin

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类文件与数据
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: image-generation。