@kenkaiiii/gg-ai 5.104.0 → 5.106.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/dist/index.cjs CHANGED
@@ -4451,8 +4451,8 @@ function toGeminiToolConfig(choice, tools) {
4451
4451
  if (choice === "required") return { functionCallingConfig: { mode: "ANY" } };
4452
4452
  return { functionCallingConfig: { mode: "ANY", allowedFunctionNames: [choice.name] } };
4453
4453
  }
4454
- function isGemini3Model(model) {
4455
- return /^gemini-3(?:\.|-|$)/.test(model);
4454
+ function usesThinkingLevel(model) {
4455
+ return /^gemini-(?:[3-9]|[1-9]\d)(?:\.|-|$)/.test(model);
4456
4456
  }
4457
4457
  function toGemini3ThinkingLevel(level) {
4458
4458
  switch (level) {
@@ -4482,7 +4482,7 @@ function toThinkingBudget(level) {
4482
4482
  }
4483
4483
  function toThinkingConfig(model, level) {
4484
4484
  if (!level) return void 0;
4485
- if (isGemini3Model(model)) {
4485
+ if (usesThinkingLevel(model)) {
4486
4486
  return {
4487
4487
  includeThoughts: true,
4488
4488
  thinkingLevel: toGemini3ThinkingLevel(level)