概览
@goodandready/dsh-image-gen
源码级技术说明Image generation for DeepSeek Harness: a generate_image tool with pluggable providers — the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).收起技术说明
Image generation for DeepSeek Harness: a generate_image tool with pluggable providers — the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).
README / ZH
插件文档
📦 @goodandready/dsh-image-gen
⚡ 核心功能与架构提升 (v0.10.0)
@goodandready/dsh-image-gen 为 DeepSeek Harness 提供工业级高可用的图像生成与视觉处理工具链:
- 8大后端全面支持: FAL.ai、Replicate、OpenAI/SiliconFlow、ChatGPT Plus (OAuth)、Grok Imagine (OAuth)、ComfyUI/A1111 本地生成、ByteDance SeaDream 与 Google Imagen 3。
- 指数退避与 Jitter 队列防爆: 针对 FAL 与 Replicate 异步队列引入智能 Backoff 轮询,彻底杜绝 429 报错。
- 确定性哈希缓存 (Deterministic Cache): 相同 Prompt 与 Seed 的重复请求直接从本地秒级返回,零 API 消耗。
- ComfyUI / Automatic1111 拖拽直通: PNG 元数据原生内嵌标准
Parameters块,生成图片可直接拖入 WebUI/ComfyUI 还原参数。 - 尺寸 64 倍数自动对齐: 自动对齐 VAE 运算尺寸,避免图像失真。
- 多风格预设增强: 内置
cinematic、anime等风格的独立 Negative Prompt 与 Guidance Scale 优化。
🚀 v0.10.4 更新:Cordis 生命周期、完整设置界面与国际化
- Cordis 生命周期 (#136):将所有 7 个工具注册包装在
ctx.effect中,以便在热重载时正常释放。 - 设置界面完整性 (#137):添加了 Replicate、SeaDream、Gemini、本地 ComfyUI/A1111、风格预设和 LLM 增强器的配置字段。
- 包清单依赖 (#138):在
peerDependencies中补齐了内核服务依赖。 - React 组件优化 (#139):从
FalImageCard中移除了未使用的无用状态。 - 全面国际化 (#140):消除了硬编码文本,为中、英、俄语提供完整翻译。
📦 安装
dsh plugin --profile web add @goodandready/dsh-image-gen
📄 许可证
MIT © GooDAnDReaDY
