File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
vertexai/generative_models Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,7 @@ def test_generate_content(
748748 frequency_penalty = 0.0 ,
749749 logprobs = 5 ,
750750 response_logprobs = True ,
751+ response_modalities = ["TEXT" ],
751752 ),
752753 safety_settings = [
753754 generative_models .SafetySetting (
Original file line number Diff line number Diff line change @@ -1638,6 +1638,8 @@ class ResponseValidationError(ResponseBlockedError):
16381638class GenerationConfig :
16391639 """Parameters for the generation."""
16401640
1641+ Modality = gapic_content_types .GenerationConfig .Modality
1642+
16411643 def __init__ (
16421644 self ,
16431645 * ,
@@ -1656,6 +1658,7 @@ def __init__(
16561658 routing_config : Optional ["RoutingConfig" ] = None ,
16571659 logprobs : Optional [int ] = None ,
16581660 response_logprobs : Optional [bool ] = None ,
1661+ response_modalities : Optional [List ["GenerationConfig.Modality" ]] = None ,
16591662 ):
16601663 r"""Constructs a GenerationConfig object.
16611664
@@ -1725,6 +1728,7 @@ def __init__(
17251728 audio_timestamp = audio_timestamp ,
17261729 logprobs = logprobs ,
17271730 response_logprobs = response_logprobs ,
1731+ response_modalities = response_modalities ,
17281732 )
17291733 if routing_config is not None :
17301734 self ._raw_generation_config .routing_config = (
You can’t perform that action at this time.
0 commit comments