From f4df12a485fb8b072c885f2f0f1c51e00a05bc55 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Tue, 17 Mar 2026 11:51:11 -0400 Subject: [PATCH] fix: use dynamic thinking_budget (-1) instead of hardcoded 8192 cap --- lib/crewai/src/crewai/llms/providers/gemini/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/llms/providers/gemini/completion.py b/lib/crewai/src/crewai/llms/providers/gemini/completion.py index 686024898..ce7a0754b 100644 --- a/lib/crewai/src/crewai/llms/providers/gemini/completion.py +++ b/lib/crewai/src/crewai/llms/providers/gemini/completion.py @@ -160,7 +160,7 @@ class GeminiCompletion(BaseLLM): and float(version_match.group(1)) >= 2.5 ): self.thinking_config = types.ThinkingConfig( - include_thoughts=True, thinking_budget=8192 + include_thoughts=True, thinking_budget=-1 ) @property