Skip to content

Commit 0a5d68d

Browse files
matthew29tangMarkDaoust
authored andcommitted
chore!: Fix Lyria method name for JS, update parameters type
PiperOrigin-RevId: 760602542
1 parent 9a45bfd commit 0a5d68d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

google/genai/_live_converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ def _WeightedPrompt_to_vertex(
22672267
return to_object
22682268

22692269

2270-
def _LiveMusicSetClientContentParameters_to_mldev(
2270+
def _LiveMusicSetWeightedPromptsParameters_to_mldev(
22712271
api_client: BaseApiClient,
22722272
from_object: Union[dict[str, Any], object],
22732273
parent_object: Optional[dict[str, Any]] = None,
@@ -2286,7 +2286,7 @@ def _LiveMusicSetClientContentParameters_to_mldev(
22862286
return to_object
22872287

22882288

2289-
def _LiveMusicSetClientContentParameters_to_vertex(
2289+
def _LiveMusicSetWeightedPromptsParameters_to_vertex(
22902290
api_client: BaseApiClient,
22912291
from_object: Union[dict[str, Any], object],
22922292
parent_object: Optional[dict[str, Any]] = None,

google/genai/types.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12265,15 +12265,15 @@ class LiveMusicConnectParametersDict(TypedDict, total=False):
1226512265

1226612266

1226712267
class LiveMusicSetConfigParameters(_common.BaseModel):
12268-
"""Parameters for setting config for the live API."""
12268+
"""Parameters for setting config for the live music API."""
1226912269

1227012270
music_generation_config: Optional[LiveMusicGenerationConfig] = Field(
1227112271
default=None, description="""Configuration for music generation."""
1227212272
)
1227312273

1227412274

1227512275
class LiveMusicSetConfigParametersDict(TypedDict, total=False):
12276-
"""Parameters for setting config for the live API."""
12276+
"""Parameters for setting config for the live music API."""
1227712277

1227812278
music_generation_config: Optional[LiveMusicGenerationConfigDict]
1227912279
"""Configuration for music generation."""
@@ -12284,22 +12284,23 @@ class LiveMusicSetConfigParametersDict(TypedDict, total=False):
1228412284
]
1228512285

1228612286

12287-
class LiveMusicSetClientContentParameters(_common.BaseModel):
12288-
"""Parameters for setting client content for the live API."""
12287+
class LiveMusicSetWeightedPromptsParameters(_common.BaseModel):
12288+
"""Parameters for setting weighted prompts for the live music API."""
1228912289

1229012290
weighted_prompts: Optional[list[WeightedPrompt]] = Field(
1229112291
default=None,
1229212292
description="""A map of text prompts to weights to use for the generation request.""",
1229312293
)
1229412294

1229512295

12296-
class LiveMusicSetClientContentParametersDict(TypedDict, total=False):
12297-
"""Parameters for setting client content for the live API."""
12296+
class LiveMusicSetWeightedPromptsParametersDict(TypedDict, total=False):
12297+
"""Parameters for setting weighted prompts for the live music API."""
1229812298

1229912299
weighted_prompts: Optional[list[WeightedPromptDict]]
1230012300
"""A map of text prompts to weights to use for the generation request."""
1230112301

1230212302

12303-
LiveMusicSetClientContentParametersOrDict = Union[
12304-
LiveMusicSetClientContentParameters, LiveMusicSetClientContentParametersDict
12303+
LiveMusicSetWeightedPromptsParametersOrDict = Union[
12304+
LiveMusicSetWeightedPromptsParameters,
12305+
LiveMusicSetWeightedPromptsParametersDict,
1230512306
]

0 commit comments

Comments
 (0)