graphlit-client 1.0.20250924003 → 1.0.20250924004
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/streaming/providers.js +13 -6
- package/package.json +1 -1
|
@@ -984,14 +984,21 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
|
|
|
984
984
|
maxOutputTokens: streamConfig.max_tokens,
|
|
985
985
|
};
|
|
986
986
|
if (thinkingConfig) {
|
|
987
|
-
// Google Gemini
|
|
988
|
-
|
|
987
|
+
// Google Gemini 2.5 Flash+ supports thinking mode
|
|
988
|
+
generationConfig.thinkingConfig = {
|
|
989
|
+
thinkingBudget: thinkingConfig.budget_tokens,
|
|
990
|
+
includeThoughts: true, // Include thinking content in the response
|
|
991
|
+
};
|
|
989
992
|
if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
|
|
990
|
-
console.log(`🧠 [Google] Extended thinking enabled | Budget: ${thinkingConfig.budget_tokens} tokens`);
|
|
993
|
+
console.log(`🧠 [Google] Extended thinking enabled | Budget: ${thinkingConfig.budget_tokens} tokens | Include thoughts: true`);
|
|
991
994
|
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
//
|
|
995
|
+
}
|
|
996
|
+
else {
|
|
997
|
+
// Explicitly disable thinking when not configured
|
|
998
|
+
generationConfig.thinkingConfig = {
|
|
999
|
+
thinkingBudget: 0, // Disable thinking by setting budget to 0
|
|
1000
|
+
includeThoughts: false,
|
|
1001
|
+
};
|
|
995
1002
|
}
|
|
996
1003
|
const model = googleClient.getGenerativeModel({
|
|
997
1004
|
model: modelName,
|