omp packages

@x-magpie/pi0.3.3

Register a magpie gateway as a pi model provider: dynamic catalog via refreshModels, streaming on pi built-in APIs.

straydragon Published 5 hours ago MIT ~716 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

@x-magpie/pi

把 magpie 网关注册成 pi 的动态模型供应商:实现 Provider.refreshModels 实时拉取目录(ETag 条件请求),流式请求委托 pi 内置 API;目录由 pi 自己缓存,离线启动可用。

pi install npm:@x-magpie/pi          # 或 pi -e ./packages/pi 本地试用

配置只有一处:models.json 的 providers.magpie(baseUrl / apiKey / api / modelOverrides),或 MAGPIE_GATEWAY_URL/_KEY/_API 环境变量,或 /login magpie。/x-magpie 查看状态,/x-magpie refresh 强制刷新。

前身为已归档的 pi-x-magpie,行为与 0.4.x 对齐,宿主无关逻辑移入 @x-magpie/core;前身仓库说明见根 README。