@diegopetrucci/pi-openai-fast 0.1.0 → 0.1.1
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 +2 -1
- package/index.ts +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ Fast mode is only injected when all of these are true:
|
|
|
25
25
|
## Commands
|
|
26
26
|
|
|
27
27
|
```text
|
|
28
|
+
/fast
|
|
28
29
|
/fast status
|
|
29
30
|
/fast on
|
|
30
31
|
/fast off
|
|
@@ -32,7 +33,7 @@ Fast mode is only injected when all of these are true:
|
|
|
32
33
|
/fast toggle
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
`/fast on` and `/fast off` are temporary session/runtime overrides. Use `/fast auto` to reload and follow config defaults again.
|
|
36
|
+
Run `/fast` without arguments to pick an action from a menu. `/fast on` and `/fast off` are temporary session/runtime overrides. Use `/fast auto` to reload and follow config defaults again.
|
|
36
37
|
|
|
37
38
|
The extension defaults to off so installing the full collection does not accidentally spend Fast-mode credits.
|
|
38
39
|
|
package/index.ts
CHANGED
|
@@ -249,7 +249,17 @@ export default function openAIFastExtension(pi: ExtensionAPI) {
|
|
|
249
249
|
},
|
|
250
250
|
handler: async (args, ctx) => {
|
|
251
251
|
const state = getState(ctx);
|
|
252
|
-
|
|
252
|
+
let action = args.trim().toLowerCase();
|
|
253
|
+
|
|
254
|
+
if (!action) {
|
|
255
|
+
if (!ctx.hasUI) {
|
|
256
|
+
action = "status";
|
|
257
|
+
} else {
|
|
258
|
+
const selection = await ctx.ui.select("OpenAI Fast mode", COMMANDS);
|
|
259
|
+
if (!selection) return;
|
|
260
|
+
action = selection;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
253
263
|
|
|
254
264
|
if (action === "on" || action === "enable") {
|
|
255
265
|
state.override = "on";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-openai-fast",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A pi extension that enables OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4 and GPT-5.5 by injecting the priority service tier.",
|
|
5
5
|
"keywords": ["pi-package", "pi", "openai", "codex", "fast"],
|
|
6
6
|
"license": "MIT",
|