Skip to content

Commit c14f479

Browse files
committed
feat: update model name
1 parent 4ffacb2 commit c14f479

16 files changed

+16
-16
lines changed

aiplatform/src/main/java/aiplatform/batchpredict/CreateBatchPredictionGeminiBigqueryJobSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static BatchPredictionJob createBatchPredictionGeminiBigqueryJobSample(
6666
String modelName =
6767
String.format(
6868
"projects/%s/locations/%s/publishers/google/models/%s",
69-
project, location, "gemini-1.5-flash-002");
69+
project, location, "gemini-2.0-flash-001");
7070

7171
BatchPredictionJob batchPredictionJob =
7272
BatchPredictionJob.newBuilder()

aiplatform/src/main/java/aiplatform/batchpredict/CreateBatchPredictionGeminiJobSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static BatchPredictionJob createBatchPredictionGeminiJobSample(
7272
String modelName =
7373
String.format(
7474
"projects/%s/locations/%s/publishers/google/models/%s",
75-
project, location, "gemini-1.5-flash-002");
75+
project, location, "gemini-2.0-flash-001");
7676

7777
BatchPredictionJob batchPredictionJob =
7878
BatchPredictionJob.newBuilder()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) throws IOException {
3333
// TODO(developer): Replace these variables before running the sample.
3434
String projectId = "genai-java-demos";
3535
String location = "us-central1";
36-
String modelName = "gemini-1.5-pro-001";
36+
String modelName = "gemini-2.0-flash-001";
3737

3838
controlGenerationWithJsonSchema6(projectId, location, modelName);
3939
}

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-1.5-flash-001";
41+
String modelName = "gemini-2.0-flash-001";
4242

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

vertexai/snippets/src/main/java/vertexai/gemini/GetMediaTokenCount.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-1.5-flash-001";
33+
String modelName = "gemini-2.0-flash-001";
3434

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

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-1.5-flash-001";
31+
String modelName = "gemini-2.0-flash-001";
3232

3333
getTokenCount(projectId, location, modelName);
3434
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) throws IOException {
3333
// TODO(developer): Replace these variables before running the sample.
3434
String projectId = "your-google-cloud-project-id";
3535
String location = "us-central1";
36-
String modelName = "gemini-1.5-flash-001";
36+
String modelName = "gemini-2.0-flash-001";
3737
String datastore = String.format(
3838
"projects/%s/locations/global/collections/default_collection/dataStores/%s",
3939
projectId, "datastore_id");

vertexai/snippets/src/main/java/vertexai/gemini/GroundingWithPublicData.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-1.5-flash-001";
35+
String modelName = "gemini-2.0-flash-001";
3636

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void main(String[] args) throws Exception {
2929
// TODO(developer): Replace these variables before running the sample.
3030
String projectId = "your-google-cloud-project-id";
3131
String location = "us-central1";
32-
String modelName = "gemini-1.5-flash-001";
32+
String modelName = "gemini-2.0-flash-001";
3333

3434
String output = nonStreamingMultimodal(projectId, location, modelName);
3535
System.out.println(output);

vertexai/snippets/src/main/java/vertexai/gemini/QuestionAnswer.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 Exception {
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-1.5-flash-001";
31+
String modelName = "gemini-2.0-flash-001";
3232

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

0 commit comments

Comments
 (0)