@benvargas/pi-openai-fast 1.0.4 → 1.0.5

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 CHANGED
@@ -52,8 +52,14 @@ Default config:
52
52
  "supportedModels": [
53
53
  "openai/gpt-5.4",
54
54
  "openai/gpt-5.5",
55
+ "openai/gpt-5.6-sol",
56
+ "openai/gpt-5.6-terra",
57
+ "openai/gpt-5.6-luna",
55
58
  "openai-codex/gpt-5.4",
56
- "openai-codex/gpt-5.5"
59
+ "openai-codex/gpt-5.5",
60
+ "openai-codex/gpt-5.6-sol",
61
+ "openai-codex/gpt-5.6-terra",
62
+ "openai-codex/gpt-5.6-luna"
57
63
  ]
58
64
  }
59
65
  ```
@@ -23,10 +23,19 @@ const FAST_SERVICE_TIER = "priority";
23
23
  const DEFAULT_SUPPORTED_MODEL_KEYS = [
24
24
  "openai/gpt-5.4",
25
25
  "openai/gpt-5.5",
26
+ "openai/gpt-5.6-sol",
27
+ "openai/gpt-5.6-terra",
28
+ "openai/gpt-5.6-luna",
26
29
  "openai-codex/gpt-5.4",
27
30
  "openai-codex/gpt-5.5",
31
+ "openai-codex/gpt-5.6-sol",
32
+ "openai-codex/gpt-5.6-terra",
33
+ "openai-codex/gpt-5.6-luna",
34
+ ] as const;
35
+ const LEGACY_DEFAULT_SUPPORTED_MODEL_KEY_SETS = [
36
+ ["openai/gpt-5.4", "openai-codex/gpt-5.4"],
37
+ ["openai/gpt-5.4", "openai/gpt-5.5", "openai-codex/gpt-5.4", "openai-codex/gpt-5.5"],
28
38
  ] as const;
29
- const LEGACY_DEFAULT_SUPPORTED_MODEL_KEYS = ["openai/gpt-5.4", "openai-codex/gpt-5.4"] as const;
30
39
 
31
40
  interface FastModeState {
32
41
  active: boolean;
@@ -146,7 +155,7 @@ function sameModelKeys(left: readonly string[] | undefined, right: readonly stri
146
155
  }
147
156
 
148
157
  function migrateSupportedModelKeys(value: string[] | undefined): string[] | undefined {
149
- if (sameModelKeys(value, LEGACY_DEFAULT_SUPPORTED_MODEL_KEYS)) {
158
+ if (LEGACY_DEFAULT_SUPPORTED_MODEL_KEY_SETS.some((legacyKeys) => sameModelKeys(value, legacyKeys))) {
150
159
  return [...DEFAULT_SUPPORTED_MODEL_KEYS];
151
160
  }
152
161
  return value;
@@ -400,7 +409,7 @@ export const _test = {
400
409
  FAST_COMMAND_ARGS,
401
410
  FAST_SERVICE_TIER,
402
411
  DEFAULT_SUPPORTED_MODEL_KEYS,
403
- LEGACY_DEFAULT_SUPPORTED_MODEL_KEYS,
412
+ LEGACY_DEFAULT_SUPPORTED_MODEL_KEY_SETS,
404
413
  DEFAULT_CONFIG_FILE,
405
414
  getConfigPaths,
406
415
  parseSupportedModelKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benvargas/pi-openai-fast",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "OpenAI fast mode toggle for pi - Enables priority service tier on supported GPT-5 models",
5
5
  "keywords": [
6
6
  "pi",
@@ -11,6 +11,7 @@
11
11
  "codex",
12
12
  "gpt-5.4",
13
13
  "gpt-5.5",
14
+ "gpt-5.6",
14
15
  "fast",
15
16
  "priority",
16
17
  "service-tier"