koishi-plugin-chatluna-google-gemini-adapter 1.3.0-alpha.3 → 1.3.0-alpha.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.
- package/lib/index.cjs +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -316,7 +316,7 @@ function prepareModelConfig(params, pluginConfig) {
|
|
|
316
316
|
let enabledThinking = null;
|
|
317
317
|
if (model.includes("-thinking") && model.includes("gemini-2.5")) {
|
|
318
318
|
enabledThinking = !model.includes("-non-thinking");
|
|
319
|
-
model = model.replace("-
|
|
319
|
+
model = model.replace("-non-thinking", "").replace("-thinking", "");
|
|
320
320
|
}
|
|
321
321
|
let thinkingBudget = pluginConfig.thinkingBudget ?? -1;
|
|
322
322
|
if (!enabledThinking && !model.includes("2.5-pro")) {
|
package/lib/index.mjs
CHANGED
|
@@ -316,7 +316,7 @@ function prepareModelConfig(params, pluginConfig) {
|
|
|
316
316
|
let enabledThinking = null;
|
|
317
317
|
if (model.includes("-thinking") && model.includes("gemini-2.5")) {
|
|
318
318
|
enabledThinking = !model.includes("-non-thinking");
|
|
319
|
-
model = model.replace("-
|
|
319
|
+
model = model.replace("-non-thinking", "").replace("-thinking", "");
|
|
320
320
|
}
|
|
321
321
|
let thinkingBudget = pluginConfig.thinkingBudget ?? -1;
|
|
322
322
|
if (!enabledThinking && !model.includes("2.5-pro")) {
|
package/package.json
CHANGED