Skip to content

Commit ce9e7b0

Browse files
MarkDaoustcopybara-github
authored andcommitted
feat: support media resolution
PiperOrigin-RevId: 745378177
1 parent 8b57e99 commit ce9e7b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/google/genai/types/GenerationConfig.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public abstract class GenerationConfig extends JsonSerializable {
5050
@JsonProperty("maxOutputTokens")
5151
public abstract Optional<Integer> maxOutputTokens();
5252

53+
/** Optional. If specified, the media resolution specified will be used. */
54+
@JsonProperty("mediaResolution")
55+
public abstract Optional<String> mediaResolution();
56+
5357
/** Optional. Positive penalties. */
5458
@JsonProperty("presencePenalty")
5559
public abstract Optional<Float> presencePenalty();
@@ -133,6 +137,9 @@ private static Builder create() {
133137
@JsonProperty("maxOutputTokens")
134138
public abstract Builder maxOutputTokens(Integer maxOutputTokens);
135139

140+
@JsonProperty("mediaResolution")
141+
public abstract Builder mediaResolution(String mediaResolution);
142+
136143
@JsonProperty("presencePenalty")
137144
public abstract Builder presencePenalty(Float presencePenalty);
138145

0 commit comments

Comments
 (0)