We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1007c commit 7dc9e12Copy full SHA for 7dc9e12
langfun/core/llms/gemini.py
@@ -695,7 +695,8 @@ def _generation_config(
695
)
696
if options.max_thinking_tokens is not None:
697
config['thinkingConfig'] = {
698
- 'thinkingBudget': options.max_thinking_tokens
+ 'includeThoughts': True,
699
+ 'thinkingBudget': options.max_thinking_tokens,
700
}
701
702
return config
langfun/core/llms/gemini_test.py
@@ -173,7 +173,7 @@ def test_generation_config(self):
173
responseLogprobs=False,
174
logprobs=None,
175
seed=None,
176
- thinkingConfig={'thinkingBudget': 100},
+ thinkingConfig={'includeThoughts': True, 'thinkingBudget': 100},
177
),
178
179
0 commit comments