@diegopetrucci/pi-fast 0.1.11 → 0.1.12

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.
Files changed (3) hide show
  1. package/README.md +11 -8
  2. package/index.ts +17 -7
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -42,7 +42,7 @@ Direct OpenAI API Fast mode requires all of the following:
42
42
 
43
43
  - Provider `openai`.
44
44
  - API `openai-responses` or `openai-completions`.
45
- - Model `gpt-6.1-sol`, `gpt-6-astra`, `gpt-6-sol`, or `gpt-6-luna`.
45
+ - Model `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-5.6-sol`, `gpt-6-astra`, `gpt-6-sol`, or `gpt-6-luna`.
46
46
  - API-key auth sets `service_tier: "fast"`; Pi's `openai` ChatGPT OAuth sets `priority`.
47
47
  - No existing `service_tier` field in the request payload.
48
48
 
@@ -60,7 +60,7 @@ the following on every activation and provider request:
60
60
 
61
61
  - Provider `openai`.
62
62
  - API `openai-responses`.
63
- - Model `gpt-6-astra`.
63
+ - Model `gpt-6-astra` or `gpt-6.1-sol`.
64
64
  - Direct API-key auth, not Codex OAuth or direct OpenAI OAuth.
65
65
  - Base URL exactly `https://api.openai.com/v1` (a single trailing slash is also accepted).
66
66
 
@@ -81,7 +81,7 @@ OpenAI Codex Fast mode requires all of the following:
81
81
 
82
82
  - Provider `openai-codex`.
83
83
  - API `openai-codex-responses`.
84
- - Model `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6-sol`, or `gpt-6-luna`.
84
+ - Model `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-6-sol`, or `gpt-6-luna`.
85
85
  - ChatGPT OAuth/subscription auth, not API-key auth.
86
86
  - No existing `service_tier` field in the request payload.
87
87
 
@@ -108,10 +108,10 @@ Anthropic Fast mode requires all of the following:
108
108
 
109
109
  - Provider `anthropic`.
110
110
  - API `anthropic-messages`.
111
- - Model `claude-opus-4-8`, `claude-opus-5`, or `claude-opus-5-5`.
111
+ - Model `claude-opus-5`, `claude-opus-5-5`, `claude-fable-5-2`, or `claude-mythos-5-2`.
112
112
  - No existing `speed` field in the request payload.
113
113
 
114
- Anthropic Fast mode supports both API-key and Claude Code OAuth access when the account has access to the research preview.
114
+ Anthropic Fast mode supports both API-key and Claude Code OAuth access. Fast mode on Claude Opus 5.5 and Claude Fable 5.2 is generally available, subject to the account usage tier. Fast mode on Claude Opus 5 is a research preview and requires research-preview access. On Claude subscriptions (OAuth), Fast usage draws from usage credits.
115
115
 
116
116
  ## Commands
117
117
 
@@ -132,7 +132,8 @@ Ultrafast override. Ultrafast defaults off, is never enabled by global or projec
132
132
  configuration, and can be undone with either command. Running ordinary `/fast`
133
133
  while Ultrafast is selected turns Ultrafast off rather than silently switching to
134
134
  another paid tier. Switching to an unsupported model or endpoint disables
135
- Ultrafast and does not re-enable it when `gpt-6-astra` is selected again. The
135
+ Ultrafast and does not re-enable it when `gpt-6-astra` or `gpt-6.1-sol` is selected again. Switching directly
136
+ between those two eligible models keeps Ultrafast on. The
136
137
  footer uses `ultrafast` while an eligible request is selected; status text says
137
138
  that the tier is requested, not remotely applied.
138
139
 
@@ -199,8 +200,10 @@ The collection package loads this unified extension only (`extensions/fast/index
199
200
  ## Notes
200
201
 
201
202
  - Anthropic Fast mode has separate rate limits, costs more than standard speed, and does not share prompt-cache prefixes with standard-speed requests.
202
- - Direct OpenAI Fast mode is limited to the confirmed GPT-6 API models above; Fast pricing, availability, and rate limits remain provider- and account-dependent.
203
- - Authoritative support evidence: [OpenAI Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) explicitly uses `gpt-6.1-sol` with `service_tier: "fast"` and documents `priority` as an equivalent alias for supported API models; the [GPT-6.1 Sol model page](https://developers.openai.com/api/docs/models/gpt-6.1-sol) documents the model itself.
203
+ - Claude Fable 5.2 Fast mode bills at $16 / $80 per MTok input/output (2x its standard rate). Because the Fast toggle follows model changes, a config default of `enabled: true` applies Fast to Fable 5.2 as soon as it is selected.
204
+ - Direct OpenAI Fast mode is limited to the documented API models above; Fast pricing, availability, and rate limits remain provider- and account-dependent.
205
+ - Authoritative support evidence: [OpenAI Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) explicitly uses `gpt-6.1-sol` with `service_tier: "fast"` and documents `priority` as an equivalent alias for supported API models; the [GPT-6.1 Sol model page](https://developers.openai.com/api/docs/models/gpt-6.1-sol) documents the model itself. The [GPT-6.1 Terra model page](https://developers.openai.com/api/docs/models/gpt-6.1-terra) states Fast prices are 2x Standard, and the Fast mode guide lists GPT-5.6 Sol at 2x.
206
+ - Codex `gpt-6.1-terra` is enabled because openai/codex `codex-rs/models-manager/models.json` @ b32ada5 advertises `priority` for it. Anthropic `claude-mythos-5-2` follows [Anthropic Fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode), which lists Claude Mythos 5.2; the native ID is inferred from naming.
204
207
  - Codex Fast availability depends on plan, client, workspace settings, and rollout. Local eligibility is not live-provider certification.
205
208
  - Pi's provider catalog remains the source of reported model pricing, including any tiered pricing; this extension does not apply guessed discounts or rewrite cost metadata.
206
209
  - OpenAI Codex Fast mode intentionally does not affect API-key models.
package/index.ts CHANGED
@@ -12,7 +12,12 @@ const ANTHROPIC_PROVIDER_ID = "anthropic";
12
12
  const ANTHROPIC_API_ID = "anthropic-messages";
13
13
  const ANTHROPIC_FAST_SPEED = "fast";
14
14
  const ANTHROPIC_FAST_BETA = "fast-mode-2026-02-01";
15
- const ANTHROPIC_SUPPORTED_MODELS = new Set(["claude-opus-4-8", "claude-opus-5", "claude-opus-5-5"]);
15
+ const ANTHROPIC_SUPPORTED_MODELS = new Set([
16
+ "claude-opus-5",
17
+ "claude-opus-5-5",
18
+ "claude-fable-5-2",
19
+ "claude-mythos-5-2",
20
+ ]);
16
21
 
17
22
  const OPENAI_PROVIDER_ID = "openai-codex";
18
23
  const OPENAI_API_ID = "openai-codex-responses";
@@ -24,6 +29,7 @@ const OPENAI_SUPPORTED_MODELS = new Set([
24
29
  "gpt-5.6-luna",
25
30
  "gpt-6-astra",
26
31
  "gpt-6.1-sol",
32
+ "gpt-6.1-terra",
27
33
  "gpt-6-sol",
28
34
  "gpt-6-luna",
29
35
  ]);
@@ -32,11 +38,13 @@ const OPENAI_API_IDS = new Set(["openai-responses", "openai-completions"]);
32
38
  const OPENAI_API_FAST_SERVICE_TIER = "fast";
33
39
  const OPENAI_API_SUPPORTED_MODELS = new Set([
34
40
  "gpt-6.1-sol",
41
+ "gpt-6.1-terra",
42
+ "gpt-5.6-sol",
35
43
  "gpt-6-astra",
36
44
  "gpt-6-sol",
37
45
  "gpt-6-luna",
38
46
  ]);
39
- const OPENAI_ULTRAFAST_MODEL = "gpt-6-astra";
47
+ const OPENAI_ULTRAFAST_MODELS = new Set(["gpt-6-astra", "gpt-6.1-sol"]);
40
48
  const OPENAI_ULTRAFAST_API_ID = "openai-responses";
41
49
  const OPENAI_ULTRAFAST_SERVICE_TIER = "ultrafast";
42
50
  const OPENAI_CANONICAL_BASE_URL = "https://api.openai.com/v1";
@@ -167,7 +175,8 @@ function getEligibility(ctx: ExtensionContext, includeServiceTier = true): Eligi
167
175
  return {
168
176
  eligible: false,
169
177
  modelKey: key,
170
- reason: "Fast mode is only enabled for Claude Opus 4.8, Claude Opus 5, and Claude Opus 5.5",
178
+ reason:
179
+ "Fast mode is only enabled for Claude Opus 5, Claude Opus 5.5, Claude Fable 5.2, and Claude Mythos 5.2",
171
180
  };
172
181
  }
173
182
 
@@ -221,7 +230,7 @@ function getEligibility(ctx: ExtensionContext, includeServiceTier = true): Eligi
221
230
  eligible: false,
222
231
  modelKey: key,
223
232
  reason:
224
- "Fast mode is only enabled for GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna on direct OpenAI APIs",
233
+ "Fast mode is only enabled for GPT-6.1 Sol, GPT-6.1 Terra, GPT-5.6 Sol, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna on direct OpenAI APIs",
225
234
  };
226
235
  }
227
236
 
@@ -271,11 +280,11 @@ function getUltrafastEligibility(ctx: ExtensionContext): Eligibility {
271
280
  };
272
281
  }
273
282
 
274
- if (model.id !== OPENAI_ULTRAFAST_MODEL) {
283
+ if (!OPENAI_ULTRAFAST_MODELS.has(model.id)) {
275
284
  return {
276
285
  eligible: false,
277
286
  modelKey: key,
278
- reason: `Ultrafast mode is only enabled for ${OPENAI_ULTRAFAST_MODEL}`,
287
+ reason: "Ultrafast mode is only enabled for GPT-6 Astra and GPT-6.1 Sol",
279
288
  };
280
289
  }
281
290
 
@@ -518,7 +527,8 @@ export default function fastExtension(pi: ExtensionAPI) {
518
527
  });
519
528
 
520
529
  pi.registerCommand("ultrafast", {
521
- description: "Toggle session-only Ultrafast mode for direct OpenAI API-key GPT-6 Astra",
530
+ description:
531
+ "Toggle session-only Ultrafast mode for direct OpenAI API-key GPT-6 Astra or GPT-6.1 Sol",
522
532
  getArgumentCompletions: () => null,
523
533
  handler: async (args, ctx) => {
524
534
  if (args.trim()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegopetrucci/pi-fast",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "A pi extension that enables Fast mode for supported direct OpenAI API, OpenAI Codex, and Anthropic Claude models based on the currently selected model.",
5
5
  "keywords": [
6
6
  "pi-package",