koishi-plugin-aka-ai-generator 0.2.4 → 0.2.5

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 +9 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -509,9 +509,17 @@ var GptGodProvider = class {
509
509
  }
510
510
  logger.error("GPTGod 图像编辑 API 调用失败", {
511
511
  message: error?.message || "未知错误",
512
+ name: error?.name,
512
513
  code: error?.code,
513
514
  status: error?.response?.status,
514
- data: error?.response?.data
515
+ statusText: error?.response?.statusText,
516
+ data: error?.response?.data,
517
+ stack: error?.stack,
518
+ cause: error?.cause,
519
+ // 如果是 axios 错误,通常会有 config 和 request 信息
520
+ url: error?.config?.url,
521
+ method: error?.config?.method,
522
+ headers: error?.config?.headers
515
523
  });
516
524
  if (error?.message?.includes("fetch") && error?.message?.includes(GPTGOD_DEFAULT_API_URL)) {
517
525
  throw new Error("图像处理失败:无法连接 GPTGod API 服务器,请稍后重试");
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.2.4",
4
+ "version": "0.2.5",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [