File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/vertexai/gemini
test/java/vertexai/gemini Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static void main(String[] args) throws IOException {
3030 // TODO(developer): Replace these variables before running the sample.
3131 String projectId = "your-google-cloud-project-id" ;
3232 String location = "us-central1" ;
33- String modelName = "gemini-pro-vision " ;
33+ String modelName = "gemini-pro" ;
3434
3535 chatDiscussion (projectId , location , modelName );
3636 }
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public class SnippetsIT {
4242 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
4343 private static final String LOCATION = "us-central1" ;
4444 private static final String GEMINI_PRO_VISION = "gemini-pro-vision" ;
45+ private static final String GEMINI_PRO = "gemini-pro" ;
4546 private static final int MAX_ATTEMPT_COUNT = 3 ;
4647 private static final int INITIAL_BACKOFF_MILLIS = 120000 ; // 2 minutes
4748 @ Rule
@@ -113,7 +114,7 @@ public void afterEach() {
113114
114115 @ Test
115116 public void testChatSession () throws IOException {
116- ChatDiscussion .chatDiscussion (PROJECT_ID , LOCATION , GEMINI_PRO_VISION );
117+ ChatDiscussion .chatDiscussion (PROJECT_ID , LOCATION , GEMINI_PRO );
117118 assertThat (out .toString ()).contains ("Chat Ended." );
118119 }
119120
You can’t perform that action at this time.
0 commit comments