@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.mjs CHANGED
@@ -1499,6 +1499,9 @@ var getFriendlyError = (err) => {
1499
1499
  if (lower.includes("token limit")) {
1500
1500
  return "You've reached your usage limit. Please update your billing limits in your dashboard to continue.";
1501
1501
  }
1502
+ if (lower.includes("failed to fetch") || lower.includes("networkerror") || lower.includes("request failed")) {
1503
+ return "The assistant couldn't respond just now \u2014 please try again in a moment.";
1504
+ }
1502
1505
  try {
1503
1506
  const parsed = JSON.parse(str);
1504
1507
  return parsed.error || parsed.message || str;