@kenkaiiii/gg-ai 5.96.2 → 5.97.0
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 +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/fast-mode.ts
|
|
2
2
|
var FAST_MODE_SUFFIX = "-fast";
|
|
3
3
|
var FAST_MODE_BASE_MODELS = {
|
|
4
|
-
anthropic: ["claude-opus-5-5"],
|
|
4
|
+
anthropic: ["claude-fable-5-2", "claude-opus-5-5"],
|
|
5
5
|
openai: ["gpt-6-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna"]
|
|
6
6
|
};
|
|
7
7
|
function resolveFastModeModel(provider, model) {
|
|
@@ -12,7 +12,7 @@ function resolveFastModeModel(provider, model) {
|
|
|
12
12
|
var FAST_MODE_REJECTION_HEADER = "anthropic-ratelimit-unified-overage-disabled-reason";
|
|
13
13
|
var FAST_MODE_REJECTION_PREFIX = "Fast mode unavailable";
|
|
14
14
|
var USAGE_PAGE = "claude.ai/settings/usage";
|
|
15
|
-
var STANDARD_SPEED_FALLBACK = "or switch to
|
|
15
|
+
var STANDARD_SPEED_FALLBACK = "or switch to the same model without Fast (standard speed), which uses your plan";
|
|
16
16
|
function describeFastModeRejection(reason) {
|
|
17
17
|
const code = reason?.trim() || "unknown";
|
|
18
18
|
const of = (headline, guidance, kind) => ({ reason: code, headline, guidance, kind });
|
|
@@ -226,7 +226,7 @@ function formatError(err) {
|
|
|
226
226
|
provider: err.provider,
|
|
227
227
|
statusCode: err.statusCode,
|
|
228
228
|
...err.requestId ? { requestId: err.requestId } : {},
|
|
229
|
-
guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to Claude Fable 5.
|
|
229
|
+
guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to Claude Fable 5.2 via the model selector \u2014 same underlying model, generally available."
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
const fastRejection = err.provider === "anthropic" ? parseFastModeRejection(err.message) : void 0;
|