koishi-plugin-smmcat-gptimage2 0.1.21 → 0.1.22

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
@@ -380,7 +380,7 @@ function apply(ctx, config) {
380
380
  };
381
381
  config.deBug && console.log(body);
382
382
  const response = await ctx.http.post(body.images ? modelConfig.use.url : modelConfig.use.no_img_url, body, {
383
- headers: { "Authorization": config.token }
383
+ headers: { "Authorization": config.token, "Content-Type": "application/json" }
384
384
  });
385
385
  config.deBug && console.log(response);
386
386
  const data = response.data;
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.1.21",
4
+ "version": "0.1.22",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [