birdman1992/dsh-birdman-plugins--plugins-dsh-plugin-model-autofill ↗★ 0
dsh-plugin-model-autofill
Auto-complete missing model display name, context window, and max output tokens in the llm-pi-ai settings namespace from the pi-ai built-in catalog.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:birdman1992/dsh-birdman-plugins#db6e2f3d4ece46ab36b5fdd0ee345e548e93a2b0&path:plugins/dsh-plugin-model-autofill说明文档
阅读完整 README ↗dsh-plugin-model-autofill
English | 中文
作用
模型信息自动补全。在 llm-pi-ai 设置命名空间($DSH_HOME/settings.yaml,
由 Web 的 Models 页面写入)中,每当模型条目缺少以下字段时自动补全:
- 显示名(
name)— 来自 pi-ai 内置模型目录 - 上下文窗口(
contextWindow) - 最大输出 token(
maxTokens)
只补全缺失字段,绝不覆盖用户已填写的值;用户修改模型配置后自动触发,
启动时也会做一次幂等补全。模型 id 带 provider/ 前缀或 :suffix 后缀
(如 openai/gpt-5.6-luna、xiaomi/mimo-v2.5-pro:free)时也能正确匹配。
安装
dsh plugin --profile web add github:birdman1992/dsh-birdman-plugins#path:plugins/dsh-plugin-model-autofill
安装后重启 profile:
dsh --profile web
如果此前已经用
link:方式安装过该插件,请先执行dsh plugin --profile web remove dsh-plugin-model-autofill并删除cordis.patch.yml中手动插入的 model-autofill 行,再执行上面的安装命令, 避免重复插入同一行 id。