Commit e145b38
committed
feat: Add responseModalities to GenerationConfig
Adds an optional `responseModalities` property to the `GenerationConfig` class. This allows specifying the desired modality types (e.g., TEXT, IMAGE, AUDIO) for the response.
The changes include:
- Adding `responseModalities: List<ResponseModality>?` to the `GenerationConfig` primary constructor.
- Updating the `GenerationConfig.Builder` to include the new property.
- Updating the internal `GenerationConfig.Internal` data class and the `toInternal` mapping for serialization.1 parent 51b4a1c commit e145b38
File tree
1 file changed
+9
-1
lines changed- firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | | - | |
| 165 | + | |
| 166 | + | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
| |||
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| |||
0 commit comments