@kenkaiiii/gg-ai 5.19.3 → 5.19.4

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
@@ -324,6 +324,9 @@ function providerGuidance(provider, message, statusCode) {
324
324
  if (lower.includes("context_length_exceeded") || lower.includes("prompt is too long")) {
325
325
  return `Context window for this ${name} model is full. Compact the conversation to shrink history, or start a new session.`;
326
326
  }
327
+ if (lower.includes("many-image request") || lower.includes("image dimensions") && lower.includes("max allowed size")) {
328
+ return `An image in conversation history exceeds ${name}'s many-image limit. Restart GG Coder so restored images are resized, then retry; if it persists, start a new session.`;
329
+ }
327
330
  if (statusCode === 413 || lower.includes("request_too_large") || lower.includes("request exceeds the maximum size")) {
328
331
  return `The request to ${name} is too large. Compact the conversation to shrink history, or start a new session.`;
329
332
  }