@billjr99/pi-openai-compat 1.1.30 → 1.1.31
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/add-provider.sh +7 -0
- package/index.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ If pi is already running when you install, type `/reload` first.
|
|
|
67
67
|
| **GMI Cloud** | `https://api.gmi-serving.com/v1` | API key from console.gmicloud.ai → Organization Settings → API Keys |
|
|
68
68
|
| **Token Harbor** | `https://tokenharbor.ai/v1` | `thk_live_...` Universal Key from tokenharbor.ai/dashboard/api-keys |
|
|
69
69
|
| **Atria ASI** | `https://api.atria-asi.ai/v1` | `atr_...` key from api.atria-asi.ai/console/keys (Google sign-in) |
|
|
70
|
+
| **Unbiased AI** | `https://api.unbiased.ai/v1` | `sk_...` key from platform.unbiased.ai (signup reviewed by hand) |
|
|
70
71
|
| **Ollama (local)** | `http://localhost:11434/v1` (editable) | Optional bearer token; leave blank for a default local install |
|
|
71
72
|
| **Ollama Cloud** | `https://ollama.com/v1` | Ollama Cloud API key from ollama.com |
|
|
72
73
|
| **llmproxy** | `http://localhost:8080/v1` (editable) | Keyless by default; bearer token if your instance requires one |
|
package/add-provider.sh
CHANGED
|
@@ -66,6 +66,12 @@ const BUILTIN = {
|
|
|
66
66
|
keyless: false,
|
|
67
67
|
keyHint: "api.atria-asi.ai/console/keys (Google sign-in; keys look like atr_...; docs at api.atria-asi.ai/docs)",
|
|
68
68
|
},
|
|
69
|
+
unbiased_ai: {
|
|
70
|
+
displayName: "Unbiased AI",
|
|
71
|
+
baseUrl: "https://api.unbiased.ai/v1",
|
|
72
|
+
keyless: false,
|
|
73
|
+
keyHint: "platform.unbiased.ai (signup is reviewed by hand; keys look like sk_...)",
|
|
74
|
+
},
|
|
69
75
|
};
|
|
70
76
|
|
|
71
77
|
// README "Auth" column text for the built-in providers, used only by patchreadme.
|
|
@@ -75,6 +81,7 @@ const BUILTIN_AUTH = {
|
|
|
75
81
|
gmi: "API key from console.gmicloud.ai → Organization Settings → API Keys",
|
|
76
82
|
tokenharbor: "`thk_live_...` Universal Key from tokenharbor.ai/dashboard/api-keys",
|
|
77
83
|
atria_asi: "`atr_...` key from api.atria-asi.ai/console/keys (Google sign-in)",
|
|
84
|
+
unbiased_ai: "`sk_...` key from platform.unbiased.ai (signup reviewed by hand)",
|
|
78
85
|
};
|
|
79
86
|
|
|
80
87
|
/**
|
package/index.ts
CHANGED
|
@@ -405,6 +405,19 @@ export const TEMPLATES: Record<string, {
|
|
|
405
405
|
// already sends, so no modelsUrl or fallbackModels override is needed.
|
|
406
406
|
keyHint: "api.atria-asi.ai/console/keys (Google sign-in; keys look like atr_...; docs at api.atria-asi.ai/docs)",
|
|
407
407
|
},
|
|
408
|
+
unbiased_ai: {
|
|
409
|
+
displayName: "Unbiased AI",
|
|
410
|
+
baseUrl: "https://api.unbiased.ai/v1",
|
|
411
|
+
keyless: false,
|
|
412
|
+
// One model, "pareto", a blend of frontier and open models. The endpoint
|
|
413
|
+
// answers both /v1/chat/completions and Anthropic's /v1/messages and takes
|
|
414
|
+
// either Authorization: Bearer or x-api-key; pi is registered with the
|
|
415
|
+
// OpenAI pair, which is what registerProvider and fetchModels already send.
|
|
416
|
+
// GET /v1/models is registered and key-gated (a well-formed sk_ key gets
|
|
417
|
+
// "Invalid API key" rather than a format complaint), so no modelsUrl or
|
|
418
|
+
// fallbackModels override is needed.
|
|
419
|
+
keyHint: "platform.unbiased.ai (signup is reviewed by hand; keys look like sk_...)",
|
|
420
|
+
},
|
|
408
421
|
custom: {
|
|
409
422
|
displayName: "Custom Endpoint",
|
|
410
423
|
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.31",
|
|
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",
|