@diegopetrucci/pi-fast 0.1.3 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +25 -4
  2. package/index.ts +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -38,9 +38,19 @@ Direct OpenAI API Fast mode requires all of the following:
38
38
 
39
39
  - Provider `openai`.
40
40
  - API `openai-responses` or `openai-completions`.
41
- - Model `gpt-6-astra`, `gpt-6-sol`, or `gpt-6-luna`.
41
+ - Model `gpt-6.1-sol`, `gpt-6-astra`, `gpt-6-sol`, or `gpt-6-luna`.
42
+ - API-key auth or Pi's `openai` ChatGPT OAuth (`Sign in with ChatGPT`).
42
43
  - No existing `service_tier` field in the request payload.
43
44
 
45
+ The direct OpenAI route stays on OpenAI's direct API contract for both API-key
46
+ auth and Pi's `openai` ChatGPT OAuth. Acceptance of `service_tier: "fast"` by
47
+ Pi's `openai` ChatGPT OAuth sign-in endpoint has not been live-verified and
48
+ remains deferred to manual gate `pel-71t6`. This direct route is never forwarded
49
+ to legacy `openai-codex` or its subscription-usage endpoint. The documented
50
+ request shape is support evidence, not live certification; this change was
51
+ validated only with mocked eligibility and request payloads, not live or paid
52
+ provider calls.
53
+
44
54
  OpenAI Codex Fast mode requires all of the following:
45
55
 
46
56
  - Provider `openai-codex`.
@@ -49,11 +59,18 @@ OpenAI Codex Fast mode requires all of the following:
49
59
  - ChatGPT OAuth/subscription auth, not API-key auth.
50
60
  - No existing `service_tier` field in the request payload.
51
61
 
62
+ GPT-6.1 Sol is intentionally unsupported on this legacy Codex route. The
63
+ Codex speed documentation lists GPT-6.1 Sol Fast with `service_tier: "fast"`,
64
+ but Pi's legacy Codex service-tier cost handling currently accounts for
65
+ `priority` and `flex`, not `fast`. The direct OpenAI API's `priority` alias is
66
+ not evidence for the legacy Codex endpoint, so this extension leaves the route
67
+ fail-closed without patching upstream pricing.
68
+
52
69
  Anthropic Fast mode requires all of the following:
53
70
 
54
71
  - Provider `anthropic`.
55
72
  - API `anthropic-messages`.
56
- - Model `claude-opus-4-8` or `claude-opus-5`.
73
+ - Model `claude-opus-4-8`, `claude-opus-5`, or `claude-opus-5-5`.
57
74
  - No existing `speed` field in the request payload.
58
75
 
59
76
  Anthropic Fast mode supports both API-key and Claude Code OAuth access when the account has access to the research preview.
@@ -129,7 +146,11 @@ The collection package loads this unified extension instead of `openai-fast` and
129
146
  ## Notes
130
147
 
131
148
  - Anthropic Fast mode has separate rate limits, costs more than standard speed, and does not share prompt-cache prefixes with standard-speed requests.
132
- - Direct OpenAI Fast mode is limited to the confirmed, officially priced GPT-6 API models above; Fast pricing, availability, and rate limits remain provider- and account-dependent.
133
- - OpenAI Codex Fast mode intentionally does not affect API-key models.
149
+ - 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.
150
+ - 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.
151
+ - The [Codex speed guide](https://developers.openai.com/codex/speed/) documents GPT-6.1 Sol Fast for ChatGPT-signed-in Codex, but legacy Codex support remains pending separate wire and cost validation; this ticket makes no live-certification claim.
152
+ - 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.
153
+ - OpenAI Codex Fast mode intentionally does not affect API-key models, and GPT-6.1 Sol remains blocked on the legacy Codex route.
154
+ - The retired `openai-fast` and `claude-fast` packages remain legacy standalone boundaries; new provider/auth behavior belongs only to this unified extension.
134
155
  - Existing `speed` and `service_tier` fields are never overwritten.
135
156
  - Pi's model catalog may not include a Fast-mode premium. Cost accounting depends on the provider reporting the effective tier in its streamed response, and this extension does not patch usage totals.
package/index.ts CHANGED
@@ -15,7 +15,7 @@ const ANTHROPIC_FAST_BETA = "fast-mode-2026-02-01";
15
15
  const CLAUDE_CODE_OAUTH_BETAS = ["claude-code-20250219", "oauth-2025-04-20"];
16
16
  const FINE_GRAINED_TOOL_STREAMING_BETA = "fine-grained-tool-streaming-2025-05-14";
17
17
  const INTERLEAVED_THINKING_BETA = "interleaved-thinking-2025-05-14";
18
- const ANTHROPIC_SUPPORTED_MODELS = new Set(["claude-opus-4-8", "claude-opus-5"]);
18
+ const ANTHROPIC_SUPPORTED_MODELS = new Set(["claude-opus-4-8", "claude-opus-5", "claude-opus-5-5"]);
19
19
 
20
20
  const OPENAI_PROVIDER_ID = "openai-codex";
21
21
  const OPENAI_API_ID = "openai-codex-responses";
@@ -29,7 +29,7 @@ const OPENAI_SUPPORTED_MODELS = new Set([
29
29
  const OPENAI_API_PROVIDER_ID = "openai";
30
30
  const OPENAI_API_IDS = new Set(["openai-responses", "openai-completions"]);
31
31
  const OPENAI_API_FAST_SERVICE_TIER = "fast";
32
- const OPENAI_API_SUPPORTED_MODELS = new Set(["gpt-6-astra", "gpt-6-sol", "gpt-6-luna"]);
32
+ const OPENAI_API_SUPPORTED_MODELS = new Set(["gpt-6.1-sol", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna"]);
33
33
 
34
34
  const DEFAULT_CONFIG: FastConfig = {
35
35
  enabled: false,
@@ -163,7 +163,7 @@ function getEligibility(ctx: ExtensionContext): Eligibility {
163
163
  return {
164
164
  eligible: false,
165
165
  modelKey: key,
166
- reason: "Fast mode is only enabled for Claude Opus 4.8 and Claude Opus 5",
166
+ reason: "Fast mode is only enabled for Claude Opus 4.8, Claude Opus 5, and Claude Opus 5.5",
167
167
  };
168
168
  }
169
169
 
@@ -216,7 +216,7 @@ function getEligibility(ctx: ExtensionContext): Eligibility {
216
216
  return {
217
217
  eligible: false,
218
218
  modelKey: key,
219
- reason: "Fast mode is only enabled for GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna on direct OpenAI APIs",
219
+ reason: "Fast mode is only enabled for GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna on direct OpenAI APIs",
220
220
  };
221
221
  }
222
222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegopetrucci/pi-fast",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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",