Install
Install with PiG
pig install npm:@x-magpie/piInstall with Pi
pi install npm:@x-magpie/piPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"image": "./icon.png",
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.5.1 (README.md). PiG does not review it.
@x-magpie/pi
把 magpie 网关注册成 pi 的动态模型供应商:实现 Provider.refreshModels 实时拉取目录(ETag 条件请求),流式请求委托 pi 内置 API;目录由 pi 自己缓存,离线启动可用。
pi install npm:@x-magpie/pi # 或 pi -e ./packages/pi 本地试用
配置优先级:环境变量 MAGPIE_GATEWAY_URL/_KEY/_API > 共享配置 ~/.config/x-magpie/config.json > models.json 的 providers.magpie(baseUrl / apiKey / api / modelOverrides) > /login magpie。/x-magpie 查看状态,/x-magpie refresh 强制刷新。
前身为已归档的 pi-x-magpie,行为与 0.4.x 对齐,宿主无关逻辑移入 @x-magpie/core;前身仓库说明见根 README。