@billjr99/pi-openai-compat 1.1.33 → 1.1.34
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
|
@@ -72,6 +72,7 @@ If pi is already running when you install, type `/reload` first.
|
|
|
72
72
|
| **ModelScope** | `https://api-inference.modelscope.cn/v1` | `ms-...` SDK token from modelscope.cn/my/myaccesstoken |
|
|
73
73
|
| **Aion Labs** | `https://api.aionlabs.ai/v1` | API key from aionlabs.ai/app/api-keys (aionlabs.ai/docs) |
|
|
74
74
|
| **Agnes AI** | `https://apihub.agnes-ai.com/v1` | `sk-...` key from the Agnes console at platform.agnes-ai.com (wiki.agnes-ai.com) |
|
|
75
|
+
| **Xiaomi MiMo** | `https://api.xiaomimimo.com/v1` | API key from the Xiaomi MiMo console at platform.xiaomimimo.com → API Keys (mimo.mi.com/docs) |
|
|
75
76
|
| **Ollama (local)** | `http://localhost:11434/v1` (editable) | Optional bearer token; leave blank for a default local install |
|
|
76
77
|
| **Ollama Cloud** | `https://ollama.com/v1` | Ollama Cloud API key from ollama.com |
|
|
77
78
|
| **llmproxy** | `http://localhost:8080/v1` (editable) | Keyless by default; bearer token if your instance requires one |
|
package/add-provider.sh
CHANGED
|
@@ -96,6 +96,12 @@ const BUILTIN = {
|
|
|
96
96
|
keyless: false,
|
|
97
97
|
keyHint: "platform.agnes-ai.com → API Key management (keys look like sk-...; docs at wiki.agnes-ai.com)",
|
|
98
98
|
},
|
|
99
|
+
xiaomi_mimo: {
|
|
100
|
+
displayName: "Xiaomi MiMo",
|
|
101
|
+
baseUrl: "https://api.xiaomimimo.com/v1",
|
|
102
|
+
keyless: false,
|
|
103
|
+
keyHint: "platform.xiaomimimo.com → API Keys (docs at mimo.mi.com/docs)",
|
|
104
|
+
},
|
|
99
105
|
};
|
|
100
106
|
|
|
101
107
|
// README "Auth" column text for the built-in providers, used only by patchreadme.
|
|
@@ -110,6 +116,7 @@ const BUILTIN_AUTH = {
|
|
|
110
116
|
modelscope: "`ms-...` SDK token from modelscope.cn/my/myaccesstoken",
|
|
111
117
|
aion_labs: "API key from aionlabs.ai/app/api-keys (aionlabs.ai/docs)",
|
|
112
118
|
agnes_ai: "`sk-...` key from the Agnes console at platform.agnes-ai.com (wiki.agnes-ai.com)",
|
|
119
|
+
xiaomi_mimo: "API key from the Xiaomi MiMo console at platform.xiaomimimo.com → API Keys (mimo.mi.com/docs)",
|
|
113
120
|
};
|
|
114
121
|
|
|
115
122
|
/**
|
package/index.ts
CHANGED
|
@@ -476,6 +476,19 @@ export const TEMPLATES: Record<string, {
|
|
|
476
476
|
// without a key, and a filter that misses would register nothing.
|
|
477
477
|
keyHint: "platform.agnes-ai.com → API Key management (keys look like sk-...; docs at wiki.agnes-ai.com)",
|
|
478
478
|
},
|
|
479
|
+
xiaomi_mimo: {
|
|
480
|
+
displayName: "Xiaomi MiMo",
|
|
481
|
+
baseUrl: "https://api.xiaomimimo.com/v1",
|
|
482
|
+
keyless: false,
|
|
483
|
+
// Xiaomi MiMo API Open Platform. GET /v1/models is key-gated (it answers
|
|
484
|
+
// 401 "invalid_key" JSON without a key, where an unknown /v1 path answers
|
|
485
|
+
// a 404 HTML page), which is exactly what fetchModels already sends, so no
|
|
486
|
+
// modelsUrl or fallbackModels override is needed. The catalog may also
|
|
487
|
+
// carry non-chat ids (e.g. mimo-v2-tts); no modelFilter is set because the
|
|
488
|
+
// live id list could not be confirmed without a key, and a filter that
|
|
489
|
+
// misses would register nothing.
|
|
490
|
+
keyHint: "platform.xiaomimimo.com → API Keys (docs at mimo.mi.com/docs)",
|
|
491
|
+
},
|
|
479
492
|
custom: {
|
|
480
493
|
displayName: "Custom Endpoint",
|
|
481
494
|
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.34",
|
|
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",
|