koishi-plugin-chatluna-google-gemini-adapter 1.3.13 → 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 +3 -1
- package/lib/index.mjs +3 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -371,7 +371,9 @@ function prepareModelConfig(params, pluginConfig) {
|
|
|
371
371
|
}
|
|
372
372
|
let imageGeneration = pluginConfig.imageGeneration ?? false;
|
|
373
373
|
if (imageGeneration) {
|
|
374
|
-
imageGeneration =
|
|
374
|
+
imageGeneration = model.includes("gemini-2.0-flash-exp") || model.includes("image");
|
|
375
|
+
thinkingBudget = void 0;
|
|
376
|
+
thinkingLevel = void 0;
|
|
375
377
|
}
|
|
376
378
|
return {
|
|
377
379
|
model,
|
package/lib/index.mjs
CHANGED
|
@@ -368,7 +368,9 @@ function prepareModelConfig(params, pluginConfig) {
|
|
|
368
368
|
}
|
|
369
369
|
let imageGeneration = pluginConfig.imageGeneration ?? false;
|
|
370
370
|
if (imageGeneration) {
|
|
371
|
-
imageGeneration =
|
|
371
|
+
imageGeneration = model.includes("gemini-2.0-flash-exp") || model.includes("image");
|
|
372
|
+
thinkingBudget = void 0;
|
|
373
|
+
thinkingLevel = void 0;
|
|
372
374
|
}
|
|
373
375
|
return {
|
|
374
376
|
model,
|
package/package.json
CHANGED