@diegopetrucci/pi-openai-fast 0.1.6 → 0.1.10
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/.pi-fleet-tested-version +1 -1
- package/README.md +5 -5
- package/index.ts +11 -5
- package/package.json +6 -2
package/.pi-fleet-tested-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.80.6
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# openai-fast
|
|
2
2
|
|
|
3
|
-
A pi extension that enables OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4 and GPT-5.5.
|
|
3
|
+
A pi extension that enables OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4, GPT-5.5, and GPT-5.6 Codex variants (`gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`).
|
|
4
4
|
|
|
5
5
|
When active, the extension injects this into eligible OpenAI Codex request payloads:
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ Fast mode is only injected when all of these are true:
|
|
|
18
18
|
|
|
19
19
|
- The current provider is `openai-codex`.
|
|
20
20
|
- The current API is `openai-codex-responses`.
|
|
21
|
-
- The current model is `gpt-5.4` or `gpt-5.
|
|
21
|
+
- The current model is `gpt-5.4`, `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, or `gpt-5.6-luna`.
|
|
22
22
|
- The provider is using ChatGPT OAuth/subscription auth, not API-key auth.
|
|
23
23
|
- The request payload does not already include `service_tier`.
|
|
24
24
|
|
|
@@ -37,16 +37,16 @@ The extension defaults to off so installing the full collection does not acciden
|
|
|
37
37
|
Optional global config:
|
|
38
38
|
|
|
39
39
|
```text
|
|
40
|
-
|
|
40
|
+
~/<pi-config-dir>/agent/extensions/openai-fast.json
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Optional project config:
|
|
44
44
|
|
|
45
45
|
```text
|
|
46
|
-
|
|
46
|
+
<project>/<pi-config-dir>/openai-fast.json
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Project config overrides global config after Pi reports that the project is trusted.
|
|
49
|
+
Here `<pi-config-dir>` is Pi's runtime config directory name (`CONFIG_DIR_NAME`; `.pi` by default). Project config overrides global config after Pi reports that the project is trusted.
|
|
50
50
|
|
|
51
51
|
```json
|
|
52
52
|
{
|
package/index.ts
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import {
|
|
4
|
+
CONFIG_DIR_NAME,
|
|
4
5
|
getAgentDir,
|
|
5
6
|
type ExtensionAPI,
|
|
6
7
|
type ExtensionContext,
|
|
7
8
|
} from "@earendil-works/pi-coding-agent";
|
|
8
9
|
|
|
9
|
-
const CONFIG_DIR_NAME = ".pi";
|
|
10
|
-
|
|
11
10
|
const EXTENSION_ID = "openai-fast";
|
|
12
11
|
const PROVIDER_ID = "openai-codex";
|
|
13
12
|
const API_ID = "openai-codex-responses";
|
|
14
13
|
const FAST_SERVICE_TIER = "priority";
|
|
15
|
-
const SUPPORTED_MODELS = new Set([
|
|
14
|
+
const SUPPORTED_MODELS = new Set([
|
|
15
|
+
"gpt-5.4",
|
|
16
|
+
"gpt-5.5",
|
|
17
|
+
"gpt-5.6-sol",
|
|
18
|
+
"gpt-5.6-terra",
|
|
19
|
+
"gpt-5.6-luna",
|
|
20
|
+
]);
|
|
21
|
+
const SUPPORTED_MODELS_LABEL = "gpt-5.4, gpt-5.5, gpt-5.6-sol, gpt-5.6-terra, or gpt-5.6-luna";
|
|
16
22
|
|
|
17
23
|
const DEFAULT_CONFIG: OpenAIFastConfig = {
|
|
18
24
|
enabled: false,
|
|
@@ -148,7 +154,7 @@ function getEligibility(ctx: ExtensionContext): Eligibility {
|
|
|
148
154
|
return {
|
|
149
155
|
eligible: false,
|
|
150
156
|
modelKey: key,
|
|
151
|
-
reason:
|
|
157
|
+
reason: `Fast mode is only enabled for ${SUPPORTED_MODELS_LABEL}`,
|
|
152
158
|
};
|
|
153
159
|
}
|
|
154
160
|
|
|
@@ -251,7 +257,7 @@ export default function openAIFastExtension(pi: ExtensionAPI) {
|
|
|
251
257
|
});
|
|
252
258
|
|
|
253
259
|
pi.registerCommand("fast", {
|
|
254
|
-
description: "Toggle OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4
|
|
260
|
+
description: "Toggle OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4, GPT-5.5, and GPT-5.6 Codex variants",
|
|
255
261
|
getArgumentCompletions: () => null,
|
|
256
262
|
handler: async (args, ctx) => {
|
|
257
263
|
const state = getState(ctx);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-openai-fast",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A pi extension that enables OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4 and GPT-5.
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "A pi extension that enables OpenAI Codex Fast mode for ChatGPT-auth GPT-5.4, GPT-5.5, and GPT-5.6 Codex variants by injecting the priority service tier.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
7
7
|
"pi",
|
|
@@ -31,5 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@earendil-works/pi-coding-agent": "*"
|
|
34
|
+
},
|
|
35
|
+
"type": "module",
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22.19.0"
|
|
34
38
|
}
|
|
35
39
|
}
|