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"