birdman1992/dsh-birdman-plugins--plugins-dsh-plugin-model-autofill ↗★ 0
dsh-plugin-model-autofill
自动补全 llm-pi-ai 设置中缺失的模型显示名、上下文窗口和最大输出 token
AI 分析
核心用途是根据 pi-ai 内置目录,自动幂等补全用户在 Models 页面配置中遗漏的模型参数。适合经常自定义模型且不希望手动填写繁琐参数的用户。安装后需重启对应的 profile。
安装
$
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。