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.
@@ -984,14 +984,21 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
984
984
  maxOutputTokens: streamConfig.max_tokens,
985
985
  };
986
986
  if (thinkingConfig) {
987
- // Google Gemini Flash 2.5+ supports thinking mode
988
- // The API may use a different parameter name than Anthropic
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
- // Note: Google's thinking API implementation may differ from Anthropic
993
- // This is a placeholder for when Google releases their thinking API
994
- // generationConfig.thinking = { enabled: true, maxTokens: thinkingConfig.budget_tokens };
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250924003",
3
+ "version": "1.0.20250924004",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",