Commit c59fa50
committed
Add tests for HarmBlockMethod compatibility with GoogleAI and VertexAI
Added unit tests to `GenerativeModelTesting.kt` to verify that:
1. Using `HarmBlockMethod` with `GoogleAI` backend throws `InvalidStateException`.
2. Using `HarmBlockMethod` with `VertexAI` backend does not throw `InvalidStateException`.
This covers an edge case where `HarmBlockMethod` is only supported by VertexAI.1 parent 09a7c24 commit c59fa50
File tree
1 file changed
+1
-3
lines changed- firebase-ai/src/test/java/com/google/firebase/ai
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
| 196 | + | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
0 commit comments