-
Notifications
You must be signed in to change notification settings - Fork 586
Vertex thinking changes to disable thinking mode for 2.5 models #1090
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
base: main
Are you sure you want to change the base?
Conversation
Important PR Review SkippedPR review skipped as per the configuration setting. Run a manually review by commenting /matter review 💡Tips to use Matter AICommand List
|
Important PR Review SkippedPR review skipped as per the configuration setting. Run a manually review by commenting /matter review 💡Tips to use Matter AICommand List
|
@@ -52,7 +52,8 @@ export function transformGenerationConfig(params: Params) { | |||
|
|||
if (params?.thinking) { | |||
const thinkingConfig: Record<string, any> = {}; | |||
thinkingConfig['include_thoughts'] = true; | |||
thinkingConfig['include_thoughts'] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on this vertex doc: https://cloud.google.com/vertex-ai/generative-ai/docs/thinking#budget
In order to disable thinking, you need to set thinking budget tokens to 0. I do not see any parameter named include_thoughts
available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this parameter looking inside the sdk, I'll find it and link it here
make changes to disable thinking mode in 2.5 models
also return thinking tokens in the response as per open ai format
example request body to disable thinking
NOTE: users are required to send
type disabled
andbudget_tokens: 0
explicitly