pi-private-models0.1.1
pi extension that keeps private model providers out of the published models.json
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-private-models
English | 简体中文
pi 扩展,让私有模型 provider 不进公开的 models.json
<agent-dir>/models.json 公开,提交进仓库
<agent-dir>/models.private.json 私有,不进仓库
{
"providers": {
"my-gateway": {
"baseUrl": "http://10.0.0.5:8123/v1",
"api": "openai-completions",
"apiKey": "$GATEWAY_API_KEY",
"models": [
{ "id": "glm-5.3", "reasoning": true, "contextWindow": 200000, "maxTokens": 32000 },
// ……
]
}
}
}
安装
从 npmjs 安装:
pi install npm:pi-private-models
从 GitHub 安装:
pi install git:github.com/jalaxy33/pi-private-models
记得把 models.private.json 加进 .gitignore。文件不存在就什么都不做。