Skip to content

Commit 2eaaffe

Browse files
speedstorm1copybara-github
authored andcommitted
feat: Add support for Tunings.tune() and Tunings.get() in Dotnet SDK
PiperOrigin-RevId: 821873672
1 parent f3f5a5c commit 2eaaffe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

google/genai/tunings.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,7 @@ def _CreateTuningJobParametersPrivate_to_vertex(
240240
setv(to_object, ['preTunedModel'], getv(from_object, ['pre_tuned_model']))
241241

242242
if getv(from_object, ['training_dataset']) is not None:
243-
setv(
244-
to_object,
245-
['supervisedTuningSpec', 'trainingDatasetUri'],
246-
_TuningDataset_to_vertex(
247-
getv(from_object, ['training_dataset']), to_object
248-
),
249-
)
243+
_TuningDataset_to_vertex(getv(from_object, ['training_dataset']), to_object)
250244

251245
if getv(from_object, ['config']) is not None:
252246
_CreateTuningJobConfig_to_vertex(getv(from_object, ['config']), to_object)

0 commit comments

Comments
 (0)