🐛 [firebase_vertexai] Feature Request: Support thinkingBudget configuration for Gemini 2.5 Flash in Flutter #17368
Labels
Needs Attention
This issue needs maintainer attention.
plugin: vertexai
label issues for vertexai plugin
type: enhancement
New feature or request
Hi team,
First of all, thank you for your amazing work on this library. I’d like to request support for a new feature introduced in the Gemini 2.5 Flash model — the ability to configure the internal "thinking" process via the thinkingBudget parameter.
As described in the official documentation, Gemini 2.5 Flash models support an internal reasoning process that can be tuned by setting the thinkingBudget (an integer between 0 and 24,576). This parameter gives the model guidance on how many tokens it can use internally to “think” before generating the final response.
Why is this important?
This feature is crucial for advanced tasks such as:
Complex code generation
Multistep problem solving in math or logic
Structured data analysis and reasoning
Use cases where we want to trade off latency vs. reasoning depth
For example, setting thinkingBudget: 0 disables the internal reasoning (faster response), while higher values allow more in-depth reasoning (better quality for complex tasks).
What we need
Please consider adding support for configuring the thinkingBudget parameter in the Flutter wrapper/library for Gemini. Ideally, it could be passed through a GenerateContentConfig (or similar config object), as is done in the Python API:
Final thoughts
Having access to this parameter in Flutter will enable developers to optimize Gemini's performance depending on their specific app needs. It’s especially valuable in educational, scientific, and reasoning-intensive applications.
Thanks again for your hard work! Looking forward to your feedback.
Best regards,
Norberto
The text was updated successfully, but these errors were encountered: