@kenkaiiii/gg-ai 5.9.4 → 5.9.6
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/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ function formatError(err) {
|
|
|
117
117
|
provider: err.provider,
|
|
118
118
|
statusCode: err.statusCode,
|
|
119
119
|
...err.requestId ? { requestId: err.requestId } : {},
|
|
120
|
-
guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to
|
|
120
|
+
guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to Claude Fable 5 via the model selector \u2014 same underlying model, generally available."
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
if (isUsageLimitError(err)) {
|
|
@@ -183,7 +183,7 @@ function finaliseBySource(source, message, requestId, hint) {
|
|
|
183
183
|
headline: message,
|
|
184
184
|
source,
|
|
185
185
|
message: "",
|
|
186
|
-
guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.5 can analyze video. Switch
|
|
186
|
+
guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.5 can analyze video. Switch to one of those via the model selector.",
|
|
187
187
|
...requestId ? { requestId } : {}
|
|
188
188
|
};
|
|
189
189
|
case "ggcoder":
|
|
@@ -240,21 +240,21 @@ function providerGuidance(provider, message, statusCode) {
|
|
|
240
240
|
return `${name} is temporarily unavailable. Retry shortly \u2014 not a GG Coder issue.`;
|
|
241
241
|
}
|
|
242
242
|
if (statusCode === 500 || lower.includes("server_error") || lower.includes("500") && lower.includes("internal server error")) {
|
|
243
|
-
return status ? `This is an error from ${name}, not GG Coder. Retry \u2014 if it keeps happening, check ${status}.` : `This is an error from ${name}, not GG Coder. Retry \u2014 if it keeps happening, try a different model
|
|
243
|
+
return status ? `This is an error from ${name}, not GG Coder. Retry \u2014 if it keeps happening, check ${status}.` : `This is an error from ${name}, not GG Coder. Retry \u2014 if it keeps happening, try a different model via the model selector.`;
|
|
244
244
|
}
|
|
245
245
|
if (lower.includes("timeout") || lower.includes("timed out")) {
|
|
246
246
|
return `Request to ${name} timed out. Their servers may be slow \u2014 retry. Not a GG Coder issue.`;
|
|
247
247
|
}
|
|
248
248
|
if (lower.includes("does not recognize the requested model") || lower.includes("model") && (lower.includes("not exist") || lower.includes("not found") || lower.includes("no access"))) {
|
|
249
|
-
return `${name} doesn't recognise this model on your account.
|
|
249
|
+
return `${name} doesn't recognise this model on your account. Switch to a different model via the model selector, or check your subscription tier.`;
|
|
250
250
|
}
|
|
251
251
|
if (lower.includes("context_length_exceeded") || lower.includes("prompt is too long")) {
|
|
252
|
-
return `Context window for this ${name} model is full.
|
|
252
|
+
return `Context window for this ${name} model is full. Compact the conversation to shrink history, or start a new session.`;
|
|
253
253
|
}
|
|
254
254
|
if (statusCode === 413 || lower.includes("request_too_large") || lower.includes("request exceeds the maximum size")) {
|
|
255
|
-
return `The request to ${name} is too large.
|
|
255
|
+
return `The request to ${name} is too large. Compact the conversation to shrink history, or start a new session.`;
|
|
256
256
|
}
|
|
257
|
-
return status ? `This is an error from ${name}, not GG Coder. Retry \u2014 if it persists, check ${status}.` : `This is an error from ${name}, not GG Coder. Retry \u2014 if it persists, try a different model
|
|
257
|
+
return status ? `This is an error from ${name}, not GG Coder. Retry \u2014 if it persists, check ${status}.` : `This is an error from ${name}, not GG Coder. Retry \u2014 if it persists, try a different model via the model selector.`;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
// src/providers/anthropic.ts
|
|
@@ -2204,10 +2204,10 @@ async function* runStream3(options) {
|
|
|
2204
2204
|
if (options.model === "gpt-5.5-pro") {
|
|
2205
2205
|
hint = "Use gpt-5.5 instead. OpenAI's Codex model catalog does not list gpt-5.5-pro.";
|
|
2206
2206
|
} else {
|
|
2207
|
-
hint = "This model is not available through Codex for the authenticated account.
|
|
2207
|
+
hint = "This model is not available through Codex for the authenticated account. Switch to a model listed for OpenAI Codex via the model selector, or check your Codex usage limits.";
|
|
2208
2208
|
}
|
|
2209
2209
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
2210
|
-
hint = "This model is not in the current OpenAI Codex catalog for this account.
|
|
2210
|
+
hint = "This model is not in the current OpenAI Codex catalog for this account. Switch to gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, or gpt-5.5 via the model selector.";
|
|
2211
2211
|
}
|
|
2212
2212
|
throw new ProviderError("openai", message, {
|
|
2213
2213
|
statusCode: response.status,
|