Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion google/genai/batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,6 @@ def _EmbedContentConfig_to_mldev(
parent_object: Optional[dict[str, Any]] = None,
) -> dict[str, Any]:
to_object: dict[str, Any] = {}

if getv(from_object, ['task_type']) is not None:
setv(
parent_object,
Expand Down
1 change: 0 additions & 1 deletion google/genai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ def _EmbedContentConfig_to_mldev(
root_object: Optional[Union[dict[str, Any], object]] = None,
) -> dict[str, Any]:
to_object: dict[str, Any] = {}

if getv(from_object, ['task_type']) is not None:
setv(
parent_object,
Expand Down
12 changes: 6 additions & 6 deletions google/genai/tunings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,18 +1411,18 @@ def _TuningJob_from_vertex(
if getv(from_object, ['veoTuningSpec']) is not None:
setv(to_object, ['veo_tuning_spec'], getv(from_object, ['veoTuningSpec']))

if getv(from_object, ['distillationSamplingSpec']) is not None:
if getv(from_object, ['tuningJobMetadata']) is not None:
setv(
to_object,
['distillation_sampling_spec'],
getv(from_object, ['distillationSamplingSpec']),
['tuning_job_metadata'],
getv(from_object, ['tuningJobMetadata']),
)

if getv(from_object, ['tuningJobMetadata']) is not None:
if getv(from_object, ['veoLoraTuningSpec']) is not None:
setv(
to_object,
['tuning_job_metadata'],
getv(from_object, ['tuningJobMetadata']),
['veo_lora_tuning_spec'],
getv(from_object, ['veoLoraTuningSpec']),
)

return to_object
Expand Down
Loading
Loading