koishi-plugin-chatluna-google-gemini-adapter 1.2.0-alpha.5 → 1.2.0

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
@@ -339,7 +339,7 @@ var GeminiRequester = class extends import_api.ModelRequester {
339
339
  try {
340
340
  let model = params.model;
341
341
  let enabledThinking = null;
342
- if (model.includes("thinking")) {
342
+ if (model.includes("-thinking") && model.includes("gemini-2.5")) {
343
343
  enabledThinking = !model.includes("-no-thinking");
344
344
  model = model.replace("-no-thinking", "").replace("-thinking", "");
345
345
  }
package/lib/index.mjs CHANGED
@@ -322,7 +322,7 @@ var GeminiRequester = class extends ModelRequester {
322
322
  try {
323
323
  let model = params.model;
324
324
  let enabledThinking = null;
325
- if (model.includes("thinking")) {
325
+ if (model.includes("-thinking") && model.includes("gemini-2.5")) {
326
326
  enabledThinking = !model.includes("-no-thinking");
327
327
  model = model.replace("-no-thinking", "").replace("-thinking", "");
328
328
  }
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.2.0-alpha.5",
4
+ "version": "1.2.0",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "peerDependencies": {
74
74
  "koishi": "^4.18.7",
75
- "koishi-plugin-chatluna": "^1.2.0-alpha.1"
75
+ "koishi-plugin-chatluna": "^1.2.0"
76
76
  },
77
77
  "koishi": {
78
78
  "description": {