Skip to content

Commit 4d48637

Browse files
fix: Correct extraneous parenthesis in GenerationConfig.toInternal
Removes an extra parenthesis and corrects the mapping logic within the `toInternal()` function in `GenerationConfig.kt` that was introduced when adding the `responseModalities` property.
1 parent e145b38 commit 4d48637

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/GenerationConfig.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,9 @@ private constructor(
157157
stopSequences = stopSequences,
158158
frequencyPenalty = frequencyPenalty,
159159
presencePenalty = presencePenalty,
160-
responseMimeType = responseMimeType,
161-
responseSchema = responseSchema,
162-
responseModalities = responseModalities,
163-
)
164160
responseMimeType = responseMimeType,
165161
responseSchema = responseSchema?.toInternal(),
166-
responseModalities = responseModalities?.map { it.toInternal() }
162+
responseModalities = responseModalities?.map { it.toInternal() },
167163
)
168164

169165
@Serializable

0 commit comments

Comments
 (0)