|
23 | 23 |
|
24 | 24 | import com.google.cloud.testing.junit4.MultipleAttemptsRule; |
25 | 25 | import com.google.gson.Gson; |
26 | | -import com.google.gson.annotations.SerializedName; |
27 | 26 | import java.io.ByteArrayOutputStream; |
28 | 27 | import java.io.IOException; |
29 | 28 | import java.io.InputStream; |
30 | 29 | import java.io.PrintStream; |
31 | 30 | import java.net.HttpURLConnection; |
32 | 31 | import java.net.URL; |
33 | 32 | import java.util.Arrays; |
34 | | -import java.util.Base64; |
35 | 33 | import java.util.stream.Collectors; |
36 | 34 | import javax.net.ssl.HttpsURLConnection; |
37 | 35 | import org.junit.After; |
@@ -192,28 +190,6 @@ public void testVideoAudioInput() throws IOException { |
192 | 190 | assertThat(output).ignoringCase().contains("Tokyo"); |
193 | 191 | } |
194 | 192 |
|
195 | | - // @Test |
196 | | - // public void testGroundingWithPublicData() throws Exception { |
197 | | - // String output = |
198 | | - // GroundingWithPublicData.groundWithPublicData(PROJECT_ID, LOCATION, GEMINI_FLASH_1_5); |
199 | | - |
200 | | - // assertThat(output).ignoringCase().contains("Rayleigh"); |
201 | | - // } |
202 | | - |
203 | | - // @Test |
204 | | - // public void testGroundingWithPrivateData() throws Exception { |
205 | | - // String output = |
206 | | - // GroundingWithPrivateData.groundWithPrivateData( |
207 | | - // PROJECT_ID, |
208 | | - // LOCATION, |
209 | | - // GEMINI_FLASH, |
210 | | - // String.format( |
211 | | - // "projects/%s/locations/global/collections/default_collection/dataStores/%s", |
212 | | - // PROJECT_ID, DATASTORE_ID)); |
213 | | - |
214 | | - // assertThat(output).ignoringCase().contains("DMV"); |
215 | | - // } |
216 | | - |
217 | 193 | @Test |
218 | 194 | public void testMultimodalStreaming() throws Exception { |
219 | 195 | StreamingMultimodal.streamingMultimodal(PROJECT_ID, LOCATION, GEMINI_FLASH); |
|
0 commit comments