koishi-plugin-smmcat-gptimage2 0.0.3 → 0.0.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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -158,7 +158,7 @@ function apply(ctx, config) {
158
158
  }
159
159
  });
160
160
  console.log(result);
161
- if (!result) return `生成失败!`;
161
+ if (!(result || result.url == null)) return `生成失败!`;
162
162
  await session.send(import_koishi.h.image(result.url) + result.prompt);
163
163
  });
164
164
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-gptimage2",
3
3
  "description": "简单去使用云接口 GPT-Image2",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [