koishi-plugin-chatluna-google-gemini-adapter 1.3.16 → 1.3.17

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/lib/index.cjs CHANGED
@@ -878,7 +878,7 @@ var GeminiRequester = class extends import_api.ModelRequester {
878
878
  };
879
879
  }
880
880
  messageContent = messagePart.text;
881
- } else if (imagePart) {
881
+ } else if (imagePart && messagePart.thought !== true) {
882
882
  const storageService = this.ctx.chatluna_storage;
883
883
  if (!storageService) {
884
884
  messagePart.text = `![image](data:${imagePart.inlineData.mimeType ?? "image/png"};base64,${imagePart.inlineData.data})`;
package/lib/index.mjs CHANGED
@@ -875,7 +875,7 @@ var GeminiRequester = class extends ModelRequester {
875
875
  };
876
876
  }
877
877
  messageContent = messagePart.text;
878
- } else if (imagePart) {
878
+ } else if (imagePart && messagePart.thought !== true) {
879
879
  const storageService = this.ctx.chatluna_storage;
880
880
  if (!storageService) {
881
881
  messagePart.text = `![image](data:${imagePart.inlineData.mimeType ?? "image/png"};base64,${imagePart.inlineData.data})`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-google-gemini-adapter",
3
3
  "description": "google-gemini adapter for chatluna",
4
- "version": "1.3.16",
4
+ "version": "1.3.17",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "koishi": "^4.18.9",
78
- "koishi-plugin-chatluna": "^1.3.6",
78
+ "koishi-plugin-chatluna": "^1.3.7",
79
79
  "koishi-plugin-chatluna-storage-service": "^0.0.11"
80
80
  },
81
81
  "peerDependenciesMeta": {