Skip to content

Commit 5f94569

Browse files
speedstorm1copybara-github
authored andcommitted
chore: Skip unnecessary conversion of training dataset object passed into Tunings.tune()
PiperOrigin-RevId: 822609104
1 parent 5d037af commit 5f94569

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/google/genai/Tunings.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,12 @@ ObjectNode createTuningJobParametersPrivateToVertex(
292292
}
293293

294294
if (Common.getValueByPath(fromObject, new String[] {"trainingDataset"}) != null) {
295-
Common.setValueByPath(
296-
toObject,
297-
new String[] {"supervisedTuningSpec", "trainingDatasetUri"},
295+
JsonNode unused =
298296
tuningDatasetToVertex(
299297
JsonSerializable.toJsonNode(
300298
Common.getValueByPath(fromObject, new String[] {"trainingDataset"})),
301299
toObject,
302-
rootObject));
300+
rootObject);
303301
}
304302

305303
if (Common.getValueByPath(fromObject, new String[] {"config"}) != null) {

0 commit comments

Comments
 (0)