@akropolys/kiku 1.6.1 → 1.6.2

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.js CHANGED
@@ -1531,6 +1531,9 @@ var getFriendlyError = (err) => {
1531
1531
  if (lower.includes("token limit")) {
1532
1532
  return "You've reached your usage limit. Please update your billing limits in your dashboard to continue.";
1533
1533
  }
1534
+ if (lower.includes("failed to fetch") || lower.includes("networkerror") || lower.includes("request failed")) {
1535
+ return "The assistant couldn't respond just now \u2014 please try again in a moment.";
1536
+ }
1534
1537
  try {
1535
1538
  const parsed = JSON.parse(str);
1536
1539
  return parsed.error || parsed.message || str;