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. 오전 2:05

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.