-
Notifications
You must be signed in to change notification settings - Fork 44
Feature Request: Support thinkingBudget configuration for Gemini 2.5 Flash in Flutter #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried setting the chat config when creating the provider? It should allow you to do what you want. |
I get the following options:
An example how I'm using the code:
|
It looks like you're referring to the GenKit API. There's no config for "thinking" that I can find on the Vertex SDK for Dart: https://pub.dev/documentation/firebase_vertexai/latest/search.html?q=thinking |
https://pub.dev/packages/flutter_ai_toolkit
My issue is a feature request
El lun., 19 may. 2025 19:06, Chris Sells ***@***.***>
escribió:
… *csells* left a comment (flutter/ai#105)
<#105 (comment)>
It looks like you're referring to the GenKit API. There's no config for
"thinking" that I can find on the Vertex SDK for Dart:
https://pub.dev/documentation/firebase_vertexai/latest/search.html?q=thinking
—
Reply to this email directly, view it on GitHub
<#105 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEO57DNXQ35LYNERCAI7BQD27IMTJAVCNFSM6AAAAAB5L3DSEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJRHA2TONZQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
https://pub.dev/packages/flutter_ai_toolkit https://github.com/flutter/Ai is the repository link in flutter_ai_toolkit space in pub dev |
Sorry, I found the issue tracker in flutter fire and opened an issue in the right place: |
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: