Skip to content

Commit f02e013

Browse files
authored
fix(vertexai): update Gemini model names (GoogleCloudPlatform#9242)
1 parent 6dc4da8 commit f02e013

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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";
33+
String modelName = "gemini-1.0-pro";
3434

3535
chatDiscussion(projectId, location, modelName);
3636
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void main(String[] args) throws IOException {
3838
// TODO(developer): Replace these variables before running the sample.
3939
String projectId = "your-google-cloud-project-id";
4040
String location = "us-central1";
41-
String modelName = "gemini-pro";
41+
String modelName = "gemini-1.0-pro";
4242

4343
String promptText = "What's the weather like in Paris?";
4444

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) throws IOException {
2828
// TODO(developer): Replace these variables before running the sample.
2929
String projectId = "your-google-cloud-project-id";
3030
String location = "us-central1";
31-
String modelName = "gemini-pro-vision";
31+
String modelName = "gemini-1.0-pro-vision";
3232

3333
String textPrompt = "Why is the sky blue?";
3434
getTokenCount(projectId, location, modelName, textPrompt);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) throws IOException {
3232
// TODO(developer): Replace these variables before running the sample.
3333
String projectId = "your-google-cloud-project-id";
3434
String location = "us-central1";
35-
String modelName = "gemini-ultra-vision";
35+
String modelName = "gemini-1.0-ultra-vision";
3636

3737
multiTurnMultimodal(projectId, location, modelName);
3838
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) throws IOException {
3636
// TODO(developer): Replace these variables before running the sample.
3737
String projectId = "your-google-cloud-project-id";
3838
String location = "us-central1";
39-
String modelName = "gemini-pro-vision";
39+
String modelName = "gemini-1.0-pro-vision";
4040

4141
multimodalMultiImage(projectId, location, modelName);
4242
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) throws Exception {
3131
// TODO(developer): Replace these variables before running the sample.
3232
String projectId = "your-google-cloud-project-id";
3333
String location = "us-central1";
34-
String modelName = "gemini-pro-vision";
34+
String modelName = "gemini-1.0-pro-vision";
3535
String dataImageBase64 = "your-base64-encoded-image";
3636

3737
String output = multimodalQuery(projectId, location, modelName, dataImageBase64);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) throws IOException {
3131
// TODO(developer): Replace these variables before running the sample.
3232
String projectId = "your-google-cloud-project-id";
3333
String location = "us-central1";
34-
String modelName = "gemini-pro-vision";
34+
String modelName = "gemini-1.0-pro-vision";
3535

3636
multimodalVideoInput(projectId, location, modelName);
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String[] args) throws Exception {
2727
// TODO(developer): Replace these variables before running the sample.
2828
String projectId = "your-google-cloud-project-id";
2929
String location = "us-central1";
30-
String modelName = "gemini-pro-vision";
30+
String modelName = "gemini-1.0-pro-vision";
3131

3232
String output = simpleQuestion(projectId, location, modelName);
3333
System.out.println(output);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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-1.0-pro-vision";
3434

3535
String output = quickstart(projectId, location, modelName);
3636
System.out.println(output);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void main(String[] args) throws IOException {
3434
// TODO(developer): Replace these variables before running the sample.
3535
String projectId = "your-google-cloud-project-id";
3636
String location = "us-central1";
37-
String modelName = "gemini-pro-vision";
37+
String modelName = "gemini-1.0-pro-vision";
3838
String textPrompt = "What is this image";
3939
String dataImageBase64 = "your-base64-encoded-image";
4040

0 commit comments

Comments
 (0)