Skip to content

Commit d0b1dbe

Browse files
author
phelan
authored
chore(model): update text to image input (#137)
Because - text to image input prompt is required, others fields is optional This commit - update text to image input
1 parent 94cc54f commit d0b1dbe

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

vdp/model/v1alpha/task_text_to_image.proto

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import "google/api/field_behavior.proto";
88
// TextToImageInput represents the input of text to image task
99
message TextToImageInput {
1010
// The prompt text
11-
string prompt = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ];
12-
// The steps
13-
optional int64 steps = 2 [ (google.api.field_behavior) = OUTPUT_ONLY ];
14-
// The guidance scale
15-
optional float cfg_scale = 3 [ (google.api.field_behavior) = OUTPUT_ONLY ];
16-
// The seed
17-
optional int64 seed = 4 [ (google.api.field_behavior) = OUTPUT_ONLY ];
11+
string prompt = 1 [ (google.api.field_behavior) = REQUIRED ];
12+
// The steps, default is 5
13+
optional int64 steps = 2 [ (google.api.field_behavior) = OPTIONAL ];
14+
// The guidance scale, default is 7.5
15+
optional float cfg_scale = 3 [ (google.api.field_behavior) = OPTIONAL ];
16+
// The seed, default is 0
17+
optional int64 seed = 4 [ (google.api.field_behavior) = OPTIONAL ];
18+
// The number of generated samples, default is 1
19+
optional int64 samples = 5 [(google.api.field_behavior) = OPTIONAL ];
1820
}
1921

2022
// TextToImageOutput represents the output of text to image task

0 commit comments

Comments
 (0)