@@ -31,46 +31,6 @@ public LiveConverters(ApiClient apiClient) {
3131 this .apiClient = apiClient ;
3232 }
3333
34- @ ExcludeFromGeneratedCoverageReport
35- ObjectNode audioTranscriptionConfigToMldev (JsonNode fromObject , ObjectNode parentObject ) {
36- ObjectNode toObject = JsonSerializable .objectMapper ().createObjectNode ();
37- if (!Common .isZero (Common .getValueByPath (fromObject , new String [] {"languageCodes" }))) {
38- throw new IllegalArgumentException (
39- "languageCodes parameter is only supported in Gemini Enterprise Agent Platform mode, not"
40- + " in Gemini Developer API mode." );
41- }
42-
43- if (Common .getValueByPath (fromObject , new String [] {"languageAuto" }) != null ) {
44- Common .setValueByPath (
45- toObject ,
46- new String [] {"languageAuto" },
47- Common .getValueByPath (fromObject , new String [] {"languageAuto" }));
48- }
49-
50- if (Common .getValueByPath (fromObject , new String [] {"languageHints" }) != null ) {
51- Common .setValueByPath (
52- toObject ,
53- new String [] {"languageHints" },
54- Common .getValueByPath (fromObject , new String [] {"languageHints" }));
55- }
56-
57- if (Common .getValueByPath (fromObject , new String [] {"customVocabulary" }) != null ) {
58- Common .setValueByPath (
59- toObject ,
60- new String [] {"customVocabulary" },
61- Common .getValueByPath (fromObject , new String [] {"customVocabulary" }));
62- }
63-
64- if (Common .getValueByPath (fromObject , new String [] {"adaptationPhrases" }) != null ) {
65- Common .setValueByPath (
66- toObject ,
67- new String [] {"adaptationPhrases" },
68- Common .getValueByPath (fromObject , new String [] {"adaptationPhrases" }));
69- }
70-
71- return toObject ;
72- }
73-
7434 @ ExcludeFromGeneratedCoverageReport
7535 ObjectNode authConfigToMldev (JsonNode fromObject , ObjectNode parentObject ) {
7636 ObjectNode toObject = JsonSerializable .objectMapper ().createObjectNode ();
@@ -926,20 +886,14 @@ ObjectNode liveClientSetupToMldev(JsonNode fromObject, ObjectNode parentObject)
926886 Common .setValueByPath (
927887 toObject ,
928888 new String [] {"inputAudioTranscription" },
929- audioTranscriptionConfigToMldev (
930- JsonSerializable .toJsonNode (
931- Common .getValueByPath (fromObject , new String [] {"inputAudioTranscription" })),
932- toObject ));
889+ Common .getValueByPath (fromObject , new String [] {"inputAudioTranscription" }));
933890 }
934891
935892 if (Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" }) != null ) {
936893 Common .setValueByPath (
937894 toObject ,
938895 new String [] {"outputAudioTranscription" },
939- audioTranscriptionConfigToMldev (
940- JsonSerializable .toJsonNode (
941- Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" })),
942- toObject ));
896+ Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" }));
943897 }
944898
945899 if (Common .getValueByPath (fromObject , new String [] {"proactivity" }) != null ) {
@@ -1214,20 +1168,14 @@ ObjectNode liveConnectConfigToMldev(JsonNode fromObject, ObjectNode parentObject
12141168 Common .setValueByPath (
12151169 parentObject ,
12161170 new String [] {"setup" , "inputAudioTranscription" },
1217- audioTranscriptionConfigToMldev (
1218- JsonSerializable .toJsonNode (
1219- Common .getValueByPath (fromObject , new String [] {"inputAudioTranscription" })),
1220- toObject ));
1171+ Common .getValueByPath (fromObject , new String [] {"inputAudioTranscription" }));
12211172 }
12221173
12231174 if (Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" }) != null ) {
12241175 Common .setValueByPath (
12251176 parentObject ,
12261177 new String [] {"setup" , "outputAudioTranscription" },
1227- audioTranscriptionConfigToMldev (
1228- JsonSerializable .toJsonNode (
1229- Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" })),
1230- toObject ));
1178+ Common .getValueByPath (fromObject , new String [] {"outputAudioTranscription" }));
12311179 }
12321180
12331181 if (Common .getValueByPath (fromObject , new String [] {"realtimeInputConfig" }) != null ) {
0 commit comments