omp packages

pi-private-models0.1.1

pi extension that keeps private model providers out of the published models.json

jalaxy33 Published 20 days ago Apache-2.0 ~263 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

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。文件不存在就什么都不做。