Skip to content

Commit d93c89a

Browse files
Chore(vertexai): remove unused (commented out) samples (GoogleCloudPlatform#10234)
Delete file GroundingWithPublicData.java and test Delete file GroundingWithPrivateData.java and test
1 parent 1407c26 commit d93c89a

3 files changed

Lines changed: 0 additions & 169 deletions

File tree

vertexai/snippets/src/main/java/vertexai/gemini/GroundingWithPrivateData.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

vertexai/snippets/src/main/java/vertexai/gemini/GroundingWithPublicData.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

vertexai/snippets/src/test/java/vertexai/gemini/SnippetsIT.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323

2424
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2525
import com.google.gson.Gson;
26-
import com.google.gson.annotations.SerializedName;
2726
import java.io.ByteArrayOutputStream;
2827
import java.io.IOException;
2928
import java.io.InputStream;
3029
import java.io.PrintStream;
3130
import java.net.HttpURLConnection;
3231
import java.net.URL;
3332
import java.util.Arrays;
34-
import java.util.Base64;
3533
import java.util.stream.Collectors;
3634
import javax.net.ssl.HttpsURLConnection;
3735
import org.junit.After;
@@ -192,28 +190,6 @@ public void testVideoAudioInput() throws IOException {
192190
assertThat(output).ignoringCase().contains("Tokyo");
193191
}
194192

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-
217193
@Test
218194
public void testMultimodalStreaming() throws Exception {
219195
StreamingMultimodal.streamingMultimodal(PROJECT_ID, LOCATION, GEMINI_FLASH);

0 commit comments

Comments
 (0)