@billjr99/pi-openai-compat 1.1.27 → 1.1.28
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/index.ts +3 -3
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -653,7 +653,7 @@ function registerProvider(pi: ExtensionAPI, key: string, p: ProviderConfig): voi
|
|
|
653
653
|
pi.registerProvider(compatKey(key), {
|
|
654
654
|
name: `compat/${key.replace(/_/g, "-")}`,
|
|
655
655
|
baseUrl: p.baseUrl,
|
|
656
|
-
apiKey: p.apiKey
|
|
656
|
+
apiKey: p.apiKey,
|
|
657
657
|
api: "openai-completions" as const,
|
|
658
658
|
models: buildProviderModels(p.cachedModels),
|
|
659
659
|
});
|
|
@@ -828,9 +828,9 @@ export default async function (pi: ExtensionAPI) {
|
|
|
828
828
|
if (!baseUrl) { ctx.ui.notify("Base URL cannot be empty.", "error"); return; }
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
// Step 3 — API key (skipped for keyless templates
|
|
831
|
+
// Step 3 — API key (skipped for keyless templates)
|
|
832
832
|
let apiKey: string | null = null;
|
|
833
|
-
if (!tpl.keyless
|
|
833
|
+
if (!tpl.keyless) {
|
|
834
834
|
const keyPrompt = tpl.keyHint
|
|
835
835
|
? `API Key: required — get it at ${tpl.keyHint}`
|
|
836
836
|
: "API Key: leave blank if keyless";
|
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.28",
|
|
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",
|