@diegopetrucci/pi-claude-fast 0.1.0 → 0.1.2
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 +1 -1
- package/index.ts +3 -3
- package/package.json +1 -1
package/.pi-fleet-tested-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.78.0
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Fast mode is only injected when all of these are true:
|
|
|
22
22
|
|
|
23
23
|
- The current provider is `anthropic`.
|
|
24
24
|
- The current API is `anthropic-messages`.
|
|
25
|
-
- The current model is `claude-opus-4-6` or `claude-opus-4-
|
|
25
|
+
- The current model is `claude-opus-4-6`, `claude-opus-4-7`, or `claude-opus-4-8`.
|
|
26
26
|
- The request payload does not already include `speed`.
|
|
27
27
|
|
|
28
28
|
Claude Fast mode is available for API-key access and Claude Code subscription/OAuth access when the account has access to Anthropic's Fast mode research preview. For Claude Code subscription users, Anthropic documents this as extra usage credits, not included subscription usage.
|
package/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ const API_ID = "anthropic-messages";
|
|
|
12
12
|
const FAST_SPEED = "fast";
|
|
13
13
|
const FAST_BETA = "fast-mode-2026-02-01";
|
|
14
14
|
const CLAUDE_CODE_OAUTH_BETAS = ["claude-code-20250219", "oauth-2025-04-20"];
|
|
15
|
-
const SUPPORTED_MODELS = new Set(["claude-opus-4-6", "claude-opus-4-7"]);
|
|
15
|
+
const SUPPORTED_MODELS = new Set(["claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"]);
|
|
16
16
|
|
|
17
17
|
const DEFAULT_CONFIG: ClaudeFastConfig = {
|
|
18
18
|
enabled: false,
|
|
@@ -143,7 +143,7 @@ function getEligibility(ctx: ExtensionContext): Eligibility {
|
|
|
143
143
|
return {
|
|
144
144
|
eligible: false,
|
|
145
145
|
modelKey: key,
|
|
146
|
-
reason: "Fast mode is only enabled for Claude Opus 4.6 and 4.
|
|
146
|
+
reason: "Fast mode is only enabled for Claude Opus 4.6, 4.7, and 4.8",
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -167,7 +167,7 @@ function syncModelBetaHeader(ctx: ExtensionContext, state: SessionState): void {
|
|
|
167
167
|
const requiredBase = ctx.modelRegistry.isUsingOAuth(model) ? CLAUDE_CODE_OAUTH_BETAS : [];
|
|
168
168
|
const next = shouldEnable
|
|
169
169
|
? Array.from(new Set([...existing, ...requiredBase, FAST_BETA]))
|
|
170
|
-
: existing.filter((beta) => beta !== FAST_BETA
|
|
170
|
+
: existing.filter((beta) => beta !== FAST_BETA);
|
|
171
171
|
|
|
172
172
|
delete headers["Anthropic-Beta"];
|
|
173
173
|
if (next.length > 0) headers["anthropic-beta"] = next.join(",");
|
package/package.json
CHANGED