@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.
- package/dist/utils/gemini.cjs +2 -2
- package/dist/utils/gemini.js +2 -2
- package/package.json +1 -1
package/dist/utils/gemini.cjs
CHANGED
|
@@ -1088,8 +1088,8 @@ function getGeminiAPI(config) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
// Add thinking configuration if explicitly set
|
|
1091
|
-
|
|
1092
|
-
|
|
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
|
package/dist/utils/gemini.js
CHANGED
|
@@ -1083,8 +1083,8 @@ export function getGeminiAPI(config) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
// Add thinking configuration if explicitly set
|
|
1086
|
-
|
|
1087
|
-
|
|
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
|