DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

shanliuling /

dsh-image-gen

已验证

Installable multi-provider image generation bundle for DeepSeek Harness (Google Gemini, OpenAI, Volcengine Seedream)

★ 33 Stars1 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub项目主页
README来源: main@648e7b75

dsh-image-gen

English | 简体中文

dsh-image-gen is an installable DeepSeek Harness (DSH) Bundle that contributes a native generate_image tool and renders durable image result cards directly in Web conversations.

Chat Preview


✨ Features

  • Multi-Provider Support: Seamless integration with Google Gemini, OpenAI / OpenAI-compatible relays, and ByteDance Seedream (Volcengine Ark).
  • Secure Credential Management: Write-only API Key storage powered by DSH credentials service. Keys are never logged or exposed in plaintext.
  • Web Settings Integration: Built-in settings card in DSH Settings with auto-filled defaults and one-click endpoint reset.
  • Durable Media Persistence: Generated images are automatically saved to DSH conversation attachment storage and rendered in rich UI cards.

Settings Preview


📦 Supported Providers

Provider Credential Key Default Model Default Endpoint / Base URL Note
Google Gemini GEMINI_API_KEY gemini-3.1-flash-image https://generativelanguage.googleapis.com/v1beta/interactions Native Gemini Interactions API
OpenAI / Relay OPENAI_API_KEY gpt-image-2 https://api.openai.com/v1 Standard OpenAI / OneAPI / NewAPI
ByteDance Seedream ARK_API_KEY doubao-seedream-5-0-260128 https://ark.cn-beijing.volces.com/api/v3 Volcengine Ark Doubao T2I

🚀 Installation & Usage

1. Install Plugin

In your DeepSeek Harness workspace, add the plugin to your profile (default web):

# Install via npm (when published)
dsh plugin --profile web add dsh-image-gen

# Or install from local path (development)
dsh plugin --profile web add /path/to/dsh-image-gen

2. Configure in Web UI

  1. Open DSH Web UI (e.g. http://localhost:3080).
  2. Navigate to Settings → Plugins → Image generation (图像生成).
  3. Select your provider, enter the API Key, verify or customize endpoint / model, and click Save.

3. Generate Images

Start a conversation and ask the agent naturally:

"Generate a realistic picture of a Holstein cow in a green meadow with wildflowers under golden sunlight."

The model will automatically invoke generate_image, fetch the image, and render it inline.


🛠️ Development

# Install dependencies
pnpm install

# Typecheck
pnpm run typecheck

# Run unit tests
pnpm run test

# Build host and client bundles
pnpm run build

# Verify packaging
pnpm run pack:check

📄 License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 648e7b759ea0

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于