← 返回列表
D

dsh-yali-image-generator

v0.1.1 · 4 天前发布

DeepSeek-Harness 图像生成插件。申请 Yali AI API Key:https://api.yaliai.com/

deepseek-harnessdsh-pluginimage-generationyali-ai

README

DeepSeek-Harness 图像生成插件

dsh-yali-image-generator 是一个可独立安装的 DeepSeek Harness Bundle,为 Agent 提供 generate_image 图像生成工具,并通过 Yali AI 异步图像网关调用模型。

包名和 Harness 模块名使用官方示例一致的 dsh- 前缀;面向用户的插件名称和工具说明统一为“DeepSeek-Harness 图像生成插件”。

官方规范符合性

本插件遵循 DeepSeek Harness 的 docs/user/develop/basicdocs/cookbook/adding-a-tool.md

  • 这是 Bundle,不是 Profile;package.json 通过 dsh.bundle.patch 声明安装补丁。

  • 插件导出 nameinject = ['tools', 'credentials']、Schemastery Configapply(ctx, config)

  • 工具通过 ctx.tools.register(defineTool(...)) 注册;执行结果是由 output.schema 定义的规范 JSON,模型可见文本由 output.render 单独渲染。

  • 接口地址、密钥环境变量、模型默认值、输出位置、超时和轮询参数均为可配置项;配置或凭据错误会明确失败。
  • 完整逐条审计见 COMPLIANCE.md

    支持的模型与接口

    | 模型 | 接口 | 规格 | 说明 |
    | --- | --- | --- | --- |
    | gemini-3.1-flash-image-preview | `P

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-yali-image-generator
    Repo
    git+https://github.com/pptt121212/dsh-yali-image-generator.git
    Engines
    {"node":"^22.19.0 || >=24.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}