dsh-openai-image:为 DSH 接入 OpenAI 文字生图
dsh-openai-image 是 flytangyu 维护的 DSH 插件,为 DeepSeek Harness 提供 generate_image 与 list_image_models,复用 OPENAI_API_KEY 调用 OpenAI 图像 API,支持中文提示、动态模型、透明背景与多规格出图,结果写入 generated-images 目录。安装需克隆仓库后执行 dsh plugin --profile web add,Node.js 需 22.19+。可与 dsh-qqbot 配合发图。当前以文字生图为主,MIT 许可,版本 1.1.0。
Read Moredsh-openai-image: Connecting DSH to OpenAI Images 2.6 for image generation and Roblox asset uploads
The DSH community plugin maintained by yangshulin2333, with package name @yangshulin2333/dsh-openai-image, is version 0.4.6 and licensed under the MIT license, falling under the model inference category. The plugin directly calls the official API endpoints /v1/images/generations and /v1/images/edits, registering three tools: image_generate, image_edit, and roblox_upload. It includes seven built-in Roblox resource presets (game_icon, thumbnail, gamepass, badge, decal, ui_9slice, seamless_texture), allowing for one-click uploads to Roblox Open Cloud to generate rbxassetid:// after image generation. It emphasizes sending only official fields to avoid common HTTP 400 errors associated with seed/steps/negative_prompt/guidance_scale parameters found in OpenAI-compatible plugins, and guarantees that the output schema contains no null object fields. Installation is performed using `dsh plugin add github:yangshulin2333/dsh-openai-image`, and configuration can be done via a graphical interface card or by editing cordis.patch.yml. Roblox upload is disabled by default and requires dialogue confirmation for each upload. It supports png/jpeg/bmp/tga formats, images smaller than 8000x8000 px, and files not exceeding 20 MB, while assets cannot be updated. The article concludes with benchmarks for speed, cost pricing, a troubleshooting table, and an explanation of applicable scenarios.
Read More