@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 +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -264,6 +264,9 @@ function providerGuidance(provider, message, statusCode) {
|
|
|
264
264
|
if (lower.includes("context_length_exceeded") || lower.includes("prompt is too long")) {
|
|
265
265
|
return `Context window for this ${name} model is full. Compact the conversation to shrink history, or start a new session.`;
|
|
266
266
|
}
|
|
267
|
+
if (lower.includes("many-image request") || lower.includes("image dimensions") && lower.includes("max allowed size")) {
|
|
268
|
+
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.`;
|
|
269
|
+
}
|
|
267
270
|
if (statusCode === 413 || lower.includes("request_too_large") || lower.includes("request exceeds the maximum size")) {
|
|
268
271
|
return `The request to ${name} is too large. Compact the conversation to shrink history, or start a new session.`;
|
|
269
272
|
}
|