Skip to content

Commit 590c12d

Browse files
authored
refactor(vertexai): remove vertexai/gemini/GetMediaTokenCount.java related to decommissioned generativeaionvertexai_gemini_token_count_advanced region tag (#10299)
* refactor: remove redundant tag from GetMediaTokenCount sample * refactor: remove GetMediaTokenCount sample from vertexai snippets * test: remove testMediaTokenCount from SnippetsIT.java
1 parent 4225760 commit 590c12d

2 files changed

Lines changed: 0 additions & 67 deletions

File tree

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

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

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ public void testTokenCount() throws Exception {
166166
assertThat(tokenCount).isEqualTo(6);
167167
}
168168

169-
@Test
170-
public void testMediaTokenCount() throws Exception {
171-
int tokenCount = GetMediaTokenCount.getMediaTokenCount(PROJECT_ID, LOCATION, GEMINI_FLASH);
172-
assertThat(tokenCount).isNotNull();
173-
}
174-
175169
@Test
176170
public void testFunctionCalling() throws Exception {
177171
String textPrompt = "What's the weather in Paris?";

0 commit comments

Comments
 (0)