mediaResolution

public abstract GenerationConfig.Builder mediaResolution(MediaResolution mediaResolution)

Setter for mediaResolution.

mediaResolution: Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.


@CanIgnoreReturnValue()
public GenerationConfig.Builder mediaResolution(MediaResolution.Known knownType)

Setter for mediaResolution given a known enum.

mediaResolution: Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.


@CanIgnoreReturnValue()
public GenerationConfig.Builder mediaResolution(String mediaResolution)

Setter for mediaResolution given a string.

mediaResolution: Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.