koishi-plugin-chatluna-google-gemini-adapter 1.2.5 → 1.2.6

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
@@ -397,7 +397,7 @@ var GeminiRequester = class extends import_api.ModelRequester {
397
397
  "gemini-2.0-flash-exp"
398
398
  ) && this._pluginConfig.imageGeneration ? ["TEXT", "IMAGE"] : void 0,
399
399
  thinkingConfig: enabledThinking != null || this._pluginConfig.includeThoughts ? {
400
- thinkingBudget: enabledThinking ? this._pluginConfig.thinkingBudget ?? -1 : 0,
400
+ thinkingBudget: enabledThinking ? this._pluginConfig.thinkingBudget ?? -1 : -1,
401
401
  includeThoughts: this._pluginConfig.includeThoughts
402
402
  } : void 0
403
403
  },
@@ -711,7 +711,7 @@ var GeminiClient = class extends import_client.PlatformModelAndEmbeddingsClient
711
711
  functionCall: !model.name.includes("vision"),
712
712
  supportMode: ["all"]
713
713
  };
714
- if (model.name.includes("gemini-2.5")) {
714
+ if (model.name.includes("gemini-2.5") && !model.name.includes("pro")) {
715
715
  if (!model.name.includes("-thinking")) {
716
716
  models.push(
717
717
  { ...info, name: model.name + "-no-thinking" },
@@ -814,7 +814,7 @@ var Config3 = import_koishi.Schema.intersect([
814
814
  googleSearch: import_koishi.Schema.boolean().default(false),
815
815
  codeExecution: import_koishi.Schema.boolean().default(false),
816
816
  urlContext: import_koishi.Schema.boolean().default(false),
817
- thinkingBudget: import_koishi.Schema.number().min(-1).max(24576).step(16).default(-1),
817
+ thinkingBudget: import_koishi.Schema.number().min(128).max(24576).step(16).default(128),
818
818
  includeThoughts: import_koishi.Schema.boolean().default(false),
819
819
  imageGeneration: import_koishi.Schema.boolean().default(false),
820
820
  groundingContentDisplay: import_koishi.Schema.boolean().default(false),
package/lib/index.mjs CHANGED
@@ -380,7 +380,7 @@ var GeminiRequester = class extends ModelRequester {
380
380
  "gemini-2.0-flash-exp"
381
381
  ) && this._pluginConfig.imageGeneration ? ["TEXT", "IMAGE"] : void 0,
382
382
  thinkingConfig: enabledThinking != null || this._pluginConfig.includeThoughts ? {
383
- thinkingBudget: enabledThinking ? this._pluginConfig.thinkingBudget ?? -1 : 0,
383
+ thinkingBudget: enabledThinking ? this._pluginConfig.thinkingBudget ?? -1 : -1,
384
384
  includeThoughts: this._pluginConfig.includeThoughts
385
385
  } : void 0
386
386
  },
@@ -694,7 +694,7 @@ var GeminiClient = class extends PlatformModelAndEmbeddingsClient {
694
694
  functionCall: !model.name.includes("vision"),
695
695
  supportMode: ["all"]
696
696
  };
697
- if (model.name.includes("gemini-2.5")) {
697
+ if (model.name.includes("gemini-2.5") && !model.name.includes("pro")) {
698
698
  if (!model.name.includes("-thinking")) {
699
699
  models.push(
700
700
  { ...info, name: model.name + "-no-thinking" },
@@ -797,7 +797,7 @@ var Config3 = Schema.intersect([
797
797
  googleSearch: Schema.boolean().default(false),
798
798
  codeExecution: Schema.boolean().default(false),
799
799
  urlContext: Schema.boolean().default(false),
800
- thinkingBudget: Schema.number().min(-1).max(24576).step(16).default(-1),
800
+ thinkingBudget: Schema.number().min(128).max(24576).step(16).default(128),
801
801
  includeThoughts: Schema.boolean().default(false),
802
802
  imageGeneration: Schema.boolean().default(false),
803
803
  groundingContentDisplay: Schema.boolean().default(false),
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.5",
4
+ "version": "1.2.6",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",