@billjr99/pi-openai-compat 1.1.19 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ If pi is already running when you install, type `/reload` first.
|
|
|
61
61
|
| **Cloudflare AI Gateway** | `https://gateway.ai.cloudflare.com/v1/{account}/{gateway}/openai` | API token from dash.cloudflare.com (`AI Gateway: Run` + `Workers AI: Read`) |
|
|
62
62
|
| **Vercel AI Gateway** | `https://ai-gateway.vercel.sh/v1` | API key from vercel.com |
|
|
63
63
|
| **OpenCode Zen** | `https://opencode.ai/zen/v1` | API key from opencode.ai |
|
|
64
|
+
| **B.AI** | `https://api.b.ai/v1` | API key from the B.AI console at b.ai (docs.b.ai) |
|
|
64
65
|
| **Ollama (local)** | `http://localhost:11434/v1` | Keyless |
|
|
65
66
|
| **Ollama Cloud** | `https://ollama.com/v1` | Ollama Cloud API key from ollama.com |
|
|
66
67
|
| **llmproxy** | `http://localhost:8080/v1` (editable) | Keyless by default; bearer token if your instance requires one |
|
package/index.ts
CHANGED
|
@@ -303,6 +303,12 @@ const TEMPLATES: Record<string, {
|
|
|
303
303
|
// Verify current model IDs via GET /v1/models — the free model list may change.
|
|
304
304
|
modelFilter: ["big-pickle", "deepseek-v4-flash-free", "minimax-m2.5-free", "nemotron-3-super-free"],
|
|
305
305
|
},
|
|
306
|
+
bai: {
|
|
307
|
+
displayName: "B.AI",
|
|
308
|
+
baseUrl: "https://api.b.ai/v1",
|
|
309
|
+
keyless: false,
|
|
310
|
+
keyHint: "b.ai console (docs at docs.b.ai/llmservice/api/)",
|
|
311
|
+
},
|
|
306
312
|
custom: {
|
|
307
313
|
displayName: "Custom Endpoint",
|
|
308
314
|
baseUrl: "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@billjr99/pi-openai-compat",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "pi-coding-agent extension: OpenAI-compatible endpoint support (OpenRouter, NVIDIA NIM, Nous Portal, Ollama, custom)",
|
|
5
5
|
"author": "Bill Mongan <https://github.com/BillJr99>",
|
|
6
6
|
"license": "MIT",
|