Skip to content

Commit 7e90a53

Browse files
Google APIscopybara-github
authored andcommitted
feat: add aspect_ratio and image_config for v1 version
PiperOrigin-RevId: 819372136
1 parent 63281f4 commit 7e90a53

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/content.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,20 @@ message VideoMetadata {
184184
[(google.api.field_behavior) = OPTIONAL];
185185
}
186186

187+
// Config for image generation features.
188+
message ImageConfig {
189+
// Optional. The desired aspect ratio for the generated images. The following
190+
// aspect ratios are supported:
191+
//
192+
// "1:1"
193+
// "2:3", "3:2"
194+
// "3:4", "4:3"
195+
// "4:5", "5:4"
196+
// "9:16", "16:9"
197+
// "21:9"
198+
optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL];
199+
}
200+
187201
// Generation config.
188202
message GenerationConfig {
189203
// The configuration for routing the request to a specific model.
@@ -337,6 +351,10 @@ message GenerationConfig {
337351
// An error will be returned if this field is set for models that don't
338352
// support thinking.
339353
ThinkingConfig thinking_config = 25 [(google.api.field_behavior) = OPTIONAL];
354+
355+
// Optional. Config for image generation features.
356+
optional ImageConfig image_config = 30
357+
[(google.api.field_behavior) = OPTIONAL];
340358
}
341359

342360
// Safety settings.

0 commit comments

Comments
 (0)