Skip to content

Commit db61975

Browse files
Google APIscopybara-github
authored andcommitted
feat: add aspect_ratio and image_config for v1beta1 version
PiperOrigin-RevId: 818839226
1 parent 4b1fe4d commit db61975

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,20 @@ message SpeechConfig {
205205
VoiceConfig voice_config = 1;
206206
}
207207

208+
// Config for image generation features.
209+
message ImageConfig {
210+
// Optional. The desired aspect ratio for the generated images. The following
211+
// aspect ratios are supported:
212+
//
213+
// "1:1"
214+
// "2:3", "3:2"
215+
// "3:4", "4:3"
216+
// "4:5", "5:4"
217+
// "9:16", "16:9"
218+
// "21:9"
219+
optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL];
220+
}
221+
208222
// Generation config.
209223
message GenerationConfig {
210224
// The configuration for routing the request to a specific model.
@@ -429,6 +443,10 @@ message GenerationConfig {
429443

430444
// Optional. Config for model selection.
431445
ModelConfig model_config = 27 [(google.api.field_behavior) = OPTIONAL];
446+
447+
// Optional. Config for image generation features.
448+
optional ImageConfig image_config = 30
449+
[(google.api.field_behavior) = OPTIONAL];
432450
}
433451

434452
// Safety settings.

0 commit comments

Comments
 (0)