QJAG1024/dsh-model-meta-autofill4

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 Analysis

核心用途是免去手动配置自定义模型参数的麻烦,确保Agent能正确识别模型限制。适合经常接入各类小众或自定义API端点的用户。

Package
dsh-model-meta-autofill
Version
0.3.0
License
MIT
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QJAG1024/dsh-model-meta-autofill

配置

类型默认说明
enabledbooleantrue总开关
sourcesstring[][models.dev]要合并的目录源:models.dev(Model Metadata Registry,https://models.dev/api.json)、PublicProviderConfdist/{name}.jsonname(如 aihubmix,需先 pnpm gen:data 生成快照),或直接给 http(s):// URL。后面的源对同一模型优先生效
refreshOnStartbooleantrue启动时拉取一次实时目录
refreshIntervalMsnumber0>0 时按此间隔定时刷新(毫秒)
timeoutMsnumber15000单次拉取超时
autoApplybooleantrue是否把补丁写入设置区(关掉则插件只提供 ctx.modelMeta 查询)
dryRunbooleanfalse试运行:只记录将补填的条目,不写设置(配合日志观察)
fillNamebooleantrue补显示名
fillInputbooleantrue补输入模态(text,视觉模型再加 image
fillReasoningbooleanfalse保留;当前恒为 false