koishi-plugin-aka-ai-generator 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -513,6 +513,9 @@ var GptGodProvider = class {
513
513
  status: error?.response?.status,
514
514
  data: error?.response?.data
515
515
  });
516
+ if (error?.message?.includes("fetch") && error?.message?.includes(GPTGOD_DEFAULT_API_URL)) {
517
+ throw new Error("图像处理失败:无法连接 GPTGod API 服务器,请稍后重试");
518
+ }
516
519
  throw new Error("图像处理API调用失败");
517
520
  }
518
521
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-aka-ai-generator",
3
3
  "description": "自用AI生成插件(GPTGod & Yunwu)",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [