From dc89de201c5dc002ab8f741e78c8a418df0aa2fe Mon Sep 17 00:00:00 2001 From: Christian Leopoldseder Date: Tue, 14 Apr 2026 09:52:25 -0700 Subject: [PATCH] feat: GenAI SDK client(multimodal) - Make multimodal_dataset optional in create_from_pandas and create_from_bigframes. PiperOrigin-RevId: 899639035 --- vertexai/_genai/datasets.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vertexai/_genai/datasets.py b/vertexai/_genai/datasets.py index e56e96175e..e78c2bf32c 100644 --- a/vertexai/_genai/datasets.py +++ b/vertexai/_genai/datasets.py @@ -953,7 +953,7 @@ def create_from_pandas( self, *, dataframe: pd.DataFrame, - multimodal_dataset: types.MultimodalDatasetOrDict, + multimodal_dataset: Optional[types.MultimodalDatasetOrDict] = None, target_table_id: Optional[str] = None, config: Optional[types.CreateMultimodalDatasetConfigOrDict] = None, ) -> types.MultimodalDataset: @@ -963,7 +963,7 @@ def create_from_pandas( dataframe (pandas.DataFrame): The pandas dataframe to be used for the created dataset. multimodal_dataset: - Required. A representation of a multimodal dataset. + Optional. A representation of a multimodal dataset. target_table_id (str): Optional. The BigQuery table id where the dataframe will be uploaded. The table id can be in the format of "dataset.table" @@ -1007,7 +1007,7 @@ def create_from_bigframes( self, *, dataframe: "bigframes.pandas.DataFrame", # type: ignore # noqa: F821 - multimodal_dataset: types.MultimodalDatasetOrDict, + multimodal_dataset: Optional[types.MultimodalDatasetOrDict] = None, target_table_id: Optional[str] = None, config: Optional[types.CreateMultimodalDatasetConfigOrDict] = None, ) -> types.MultimodalDataset: @@ -1018,7 +1018,7 @@ def create_from_bigframes( The BigFrames dataframe that will be used for the created dataset. multimodal_dataset: - Required. A representation of a multimodal dataset. + Optional. A representation of a multimodal dataset. target_table_id (str): Optional. The BigQuery table id where the dataframe will be uploaded. The table id can be in the format of "dataset.table" @@ -2177,7 +2177,7 @@ async def create_from_pandas( self, *, dataframe: pd.DataFrame, - multimodal_dataset: types.MultimodalDatasetOrDict, + multimodal_dataset: Optional[types.MultimodalDatasetOrDict] = None, target_table_id: Optional[str] = None, config: Optional[types.CreateMultimodalDatasetConfigOrDict] = None, ) -> types.MultimodalDataset: @@ -2187,7 +2187,7 @@ async def create_from_pandas( dataframe (pandas.DataFrame): The pandas dataframe to be used for the created dataset. multimodal_dataset: - Required. A representation of a multimodal dataset. + Optional. A representation of a multimodal dataset. target_table_id (str): Optional. The BigQuery table id where the dataframe will be uploaded. The table id can be in the format of "dataset.table" @@ -2231,7 +2231,7 @@ async def create_from_bigframes( self, *, dataframe: "bigframes.pandas.DataFrame", # type: ignore # noqa: F821 - multimodal_dataset: types.MultimodalDatasetOrDict, + multimodal_dataset: Optional[types.MultimodalDatasetOrDict] = None, target_table_id: Optional[str] = None, config: Optional[types.CreateMultimodalDatasetConfigOrDict] = None, ) -> types.MultimodalDataset: @@ -2242,7 +2242,7 @@ async def create_from_bigframes( The BigFrames dataframe that will be used for the created dataset. multimodal_dataset: - Required. A representation of a multimodal dataset. + Optional. A representation of a multimodal dataset. target_table_id (str): Optional. The BigQuery table id where the dataframe will be uploaded. The table id can be in the format of "dataset.table"