Skip to content

Commit 6e084af

Browse files
Google APIscopybara-github
authored andcommitted
feat: adding ThinkingConfig to v1beta1 client library
PiperOrigin-RevId: 751263449
1 parent 2e5f8ba commit 6e084af

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ message GenerationConfig {
236236
}
237237
}
238238

239+
// Config for thinking features.
240+
message ThinkingConfig {
241+
// Optional. Indicates the thinking budget in tokens.
242+
// This is only applied when enable_thinking is true.
243+
optional int32 thinking_budget = 3 [(google.api.field_behavior) = OPTIONAL];
244+
}
245+
239246
// Config for model selection.
240247
message ModelConfig {
241248
// Options for feature selection preference.
@@ -359,6 +366,11 @@ message GenerationConfig {
359366
optional SpeechConfig speech_config = 23
360367
[(google.api.field_behavior) = OPTIONAL];
361368

369+
// Optional. Config for thinking features.
370+
// An error will be returned if this field is set for models that don't
371+
// support thinking.
372+
ThinkingConfig thinking_config = 25 [(google.api.field_behavior) = OPTIONAL];
373+
362374
// Optional. Config for model selection.
363375
ModelConfig model_config = 27 [(google.api.field_behavior) = OPTIONAL];
364376
}

0 commit comments

Comments
 (0)