QJAG1024/dsh-model-meta-autofill ↗★ 4
dsh-model-meta-autofill
DSH plugin: auto-fill metadata (context length, output cap, display name, input modalities) for custom-provider models from the Model Metadata Registry (models.dev).
AI 分析
核心用途是免去手动配置自定义模型参数的麻烦,确保Agent能正确识别模型限制。适合经常接入各类小众或自定义API端点的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QJAG1024/dsh-model-meta-autofillドキュメント
README 全文を読む ↗配置
| 键 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled | boolean | true | 总开关 |
sources | string[] | [models.dev] | 要合并的目录源:models.dev(Model Metadata Registry,https://models.dev/api.json)、PublicProviderConf 的 dist/{name}.json 的 name(如 aihubmix,需先 pnpm gen:data 生成快照),或直接给 http(s):// URL。后面的源对同一模型优先生效 |
refreshOnStart | boolean | true | 启动时拉取一次实时目录 |
refreshIntervalMs | number | 0 | >0 时按此间隔定时刷新(毫秒) |
timeoutMs | number | 15000 | 单次拉取超时 |
autoApply | boolean | true | 是否把补丁写入设置区(关掉则插件只提供 ctx.modelMeta 查询) |
dryRun | boolean | false | 试运行:只记录将补填的条目,不写设置(配合日志观察) |
fillName | boolean | true | 补显示名 |
fillInput | boolean | true | 补输入模态(text,视觉模型再加 image) |
fillReasoning | boolean | false | 保留;当前恒为 false |