@kenkaiiii/gg-ai 5.9.4 → 5.9.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.
package/dist/index.cjs CHANGED
@@ -172,7 +172,7 @@ function formatError(err) {
172
172
  provider: err.provider,
173
173
  statusCode: err.statusCode,
174
174
  ...err.requestId ? { requestId: err.requestId } : {},
175
- guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to claude-fable-5 with /model \u2014 same underlying model, generally available."
175
+ 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."
176
176
  };
177
177
  }
178
178
  if (isUsageLimitError(err)) {
@@ -238,7 +238,7 @@ function finaliseBySource(source, message, requestId, hint) {
238
238
  headline: message,
239
239
  source,
240
240
  message: "",
241
- guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.5 can analyze video. Switch with /model.",
241
+ guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.5 can analyze video. Switch to one of those via the model selector.",
242
242
  ...requestId ? { requestId } : {}
243
243
  };
244
244
  case "ggcoder":
@@ -295,21 +295,21 @@ function providerGuidance(provider, message, statusCode) {
295
295
  return `${name} is temporarily unavailable. Retry shortly \u2014 not a GG Coder issue.`;
296
296
  }
297
297
  if (statusCode === 500 || lower.includes("server_error") || lower.includes("500") && lower.includes("internal server error")) {
298
- 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 with /model.`;
298
+ 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.`;
299
299
  }
300
300
  if (lower.includes("timeout") || lower.includes("timed out")) {
301
301
  return `Request to ${name} timed out. Their servers may be slow \u2014 retry. Not a GG Coder issue.`;
302
302
  }
303
303
  if (lower.includes("does not recognize the requested model") || lower.includes("model") && (lower.includes("not exist") || lower.includes("not found") || lower.includes("no access"))) {
304
- return `${name} doesn't recognise this model on your account. Use /model to switch, or check your subscription tier.`;
304
+ return `${name} doesn't recognise this model on your account. Switch to a different model via the model selector, or check your subscription tier.`;
305
305
  }
306
306
  if (lower.includes("context_length_exceeded") || lower.includes("prompt is too long")) {
307
- return `Context window for this ${name} model is full. Run /compact to shrink history, or start a new session.`;
307
+ return `Context window for this ${name} model is full. Compact the conversation to shrink history, or start a new session.`;
308
308
  }
309
309
  if (statusCode === 413 || lower.includes("request_too_large") || lower.includes("request exceeds the maximum size")) {
310
- return `The request to ${name} is too large. Run /compact to shrink history, or start a new session.`;
310
+ return `The request to ${name} is too large. Compact the conversation to shrink history, or start a new session.`;
311
311
  }
312
- 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 with /model.`;
312
+ 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.`;
313
313
  }
314
314
 
315
315
  // src/providers/anthropic.ts
@@ -2259,10 +2259,10 @@ async function* runStream3(options) {
2259
2259
  if (options.model === "gpt-5.5-pro") {
2260
2260
  hint = "Use gpt-5.5 instead. OpenAI's Codex model catalog does not list gpt-5.5-pro.";
2261
2261
  } else {
2262
- hint = "This model is not available through Codex for the authenticated account. Run /model and choose a model listed for OpenAI Codex, or check your Codex model picker/usage limits.";
2262
+ 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.";
2263
2263
  }
2264
2264
  } else if (response.status === 404 && text.includes("does not exist")) {
2265
- hint = "This model is not in the current OpenAI Codex catalog for this account. Try gpt-5.5, gpt-5.4, gpt-5.4-mini, or gpt-5.3-codex.";
2265
+ 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.";
2266
2266
  }
2267
2267
  throw new ProviderError("openai", message, {
2268
2268
  statusCode: response.status,