Naskete/dsh-agnes-image ↗★ 0

dsh-agnes-image

DeepSeek Harness 生图插件:文生图 / 图生图 / 多图合成,基于 Agnes AI(agnes-image-2.5-flash)。零依赖,纯 JavaScript,无需构建。 | DSH image generation plugin for DeepSeek Harness: text-to-image, image-to-image, and multi-image composition via Agnes AI. 适合需要让AI在对话中直接调用Agnes API进行图像生成与编辑的用户。

パッケージ
dsh-agnes-image
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/09

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Naskete/dsh-agnes-image

ドキュメント

README 全文を読む ↗

进阶:配置项

在你的 profile 里覆盖(~/.dsh/profiles/ /cordis.patch.yml):

- id: agnes-image
  name: dsh-agnes-image
  config:
    apiKey: ''                                     # 留空 → 环境变量 → 密钥文件
    baseUrl: https://apihub.agnes-ai.com/v1        # 接口地址(国内备用:apihub.agnes-ai.cn)
    model: agnes-image-2.5-flash                   # 默认模型
    outputDir: generated-images                    # 输出目录(相对会话工作区,可写绝对路径)
    timeoutMs: 300000                              # 单次请求超时(毫秒),官方建议 60s–360s
字段类型默认说明
apiKeystring无留空则按「环境变量 → 密钥文件」继续找
baseUrlstringhttps://apihub.agnes-ai.com/v1末尾斜杠会被自动去掉
modelstringagnes-image-2.5-flash调用时没指定就用它
outputDirstringgenerated-images相对会话工作区;实际落在其下的 /
timeoutMsnumber300000超时后中止请求并报错

📌 写错配置项名字会直接报错(而不是被默默忽略)—— 这样你才能发现拼写错误。 📌 patch 是整体替换 config,不是逐项合并:覆盖时要重写所有你想保留的字段。