Commit cb84368
authored
fix(vertex_ai): add includeThoughts=True for Gemini 3 reasoning_effort (#16838)
Gemini 3 models require 'includeThoughts: True' in the thinkingConfig to return the actual thought text. Previously, using reasoning_effort set the 'thinkingLevel' but missed the boolean flag, resulting in empty reasoning_content.
This fix:
1. Updates `_map_reasoning_effort_to_thinking_level` to include `includeThoughts: True` for low/medium/high.
2. Adds unit tests to verify the config mapping.1 parent 3b6f3e4 commit cb84368
File tree
2 files changed
+116
-75
lines changed- litellm/llms/vertex_ai/gemini
- tests/test_litellm/llms/vertex_ai/gemini
2 files changed
+116
-75
lines changed
0 commit comments