@langchain/google-common 0.2.7 → 0.2.8

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.
@@ -1088,8 +1088,8 @@ function getGeminiAPI(config) {
1088
1088
  }
1089
1089
  }
1090
1090
  // Add thinking configuration if explicitly set
1091
- if (typeof parameters.maxReasoningTokens !== "undefined" &&
1092
- parameters.maxReasoningTokens !== 0) {
1091
+ // Note that you cannot have thinkingBudget set to 0 and includeThoughts true
1092
+ if (typeof parameters.maxReasoningTokens !== "undefined") {
1093
1093
  ret.thinkingConfig = {
1094
1094
  thinkingBudget: parameters.maxReasoningTokens,
1095
1095
  // TODO: Expose this configuration to the user once google fully supports it
@@ -1083,8 +1083,8 @@ export function getGeminiAPI(config) {
1083
1083
  }
1084
1084
  }
1085
1085
  // Add thinking configuration if explicitly set
1086
- if (typeof parameters.maxReasoningTokens !== "undefined" &&
1087
- parameters.maxReasoningTokens !== 0) {
1086
+ // Note that you cannot have thinkingBudget set to 0 and includeThoughts true
1087
+ if (typeof parameters.maxReasoningTokens !== "undefined") {
1088
1088
  ret.thinkingConfig = {
1089
1089
  thinkingBudget: parameters.maxReasoningTokens,
1090
1090
  // TODO: Expose this configuration to the user once google fully supports it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-common",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Core types and classes for Google services.",
5
5
  "type": "module",
6
6
  "engines": {