koishi-plugin-chatluna-google-gemini-adapter 1.3.14 → 1.3.15

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
@@ -371,7 +371,7 @@ function prepareModelConfig(params, pluginConfig) {
371
371
  }
372
372
  let imageGeneration = pluginConfig.imageGeneration ?? false;
373
373
  if (imageGeneration) {
374
- imageGeneration = params.model.includes("gemini-2.0-flash-exp") || params.model.includes("image");
374
+ imageGeneration = model.includes("gemini-2.0-flash-exp") || model.includes("image");
375
375
  thinkingBudget = void 0;
376
376
  thinkingLevel = void 0;
377
377
  }
package/lib/index.mjs CHANGED
@@ -368,7 +368,7 @@ function prepareModelConfig(params, pluginConfig) {
368
368
  }
369
369
  let imageGeneration = pluginConfig.imageGeneration ?? false;
370
370
  if (imageGeneration) {
371
- imageGeneration = params.model.includes("gemini-2.0-flash-exp") || params.model.includes("image");
371
+ imageGeneration = model.includes("gemini-2.0-flash-exp") || model.includes("image");
372
372
  thinkingBudget = void 0;
373
373
  thinkingLevel = void 0;
374
374
  }
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.14",
4
+ "version": "1.3.15",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",