Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion genai/snippets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<scope>test</scope>
</dependency>
Comment thread
XrossFox marked this conversation as resolved.
<dependency>
<groupId>com.openai</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ImageGenVirtualTryOnWithTextAndImage {

public static void main(String[] args) throws IOException {
// TODO(developer): Replace these variables before running the sample.
String modelId = "virtual-try-on-preview-08-04";
String modelId = "virtual-try-on-001";
String outputFile = "resources/output/man_in_sweater.png";
generateContent(modelId, outputFile);
}
Expand Down Expand Up @@ -84,4 +84,4 @@ public static Image generateContent(String modelId, String outputFile) throws IO
}
}
}
// [END googlegenaisdk_imggen_virtual_try_on_with_txt_img]
// [END googlegenaisdk_imggen_virtual_try_on_with_txt_img]
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class VideoGenWithImg {

public static void main(String[] args) throws InterruptedException {
// TODO(developer): Replace these variables before running the sample.
String modelId = "veo-3.0-generate-preview";
String modelId = "veo-3.1-generate-001";
String outputGcsUri = "gs://your-bucket/your-prefix";
generateContent(modelId, outputGcsUri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class VideoGenWithTxt {

public static void main(String[] args) throws InterruptedException {
// TODO(developer): Replace these variables before running the sample.
String modelId = "veo-3.0-generate-001";
String modelId = "veo-3.1-generate-001";
String outputGcsUri = "gs://your-bucket/your-prefix";
generateContent(modelId, outputGcsUri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class ImageGenerationIT {
private static final String PREFIX = "genai-img-generation-" + UUID.randomUUID();
private static final String OUTPUT_GCS_URI = String.format("gs://%s/%s", BUCKET_NAME, PREFIX);
private static final String IMAGEN_4_MODEL = "imagen-4.0-generate-001";
private static final String VIRTUAL_TRY_ON_MODEL = "virtual-try-on-preview-08-04";
private static final String VIRTUAL_TRY_ON_MODEL = "virtual-try-on-001";

private ByteArrayOutputStream bout;
private PrintStream out;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
@RunWith(JUnit4.class)
public class VideoGenerationIT {

private static final String VIDEO_GEN_MODEL = "veo-3.0-generate-001";
private static final String VIDEO_GEN_PREVIEW_MODEL = "veo-3.0-generate-preview";
private static final String VIDEO_GEN_MODEL = "veo-3.1-generate-001";
private static final String BUCKET_NAME = "java-docs-samples-testing";
private static final String PREFIX = "genai-video-generation-" + UUID.randomUUID();
private static final String OUTPUT_GCS_URI = String.format("gs://%s/%s", BUCKET_NAME, PREFIX);
Expand Down Expand Up @@ -82,7 +81,7 @@ public void tearDown() {

@Test
public void testVideoGenWithImg() throws InterruptedException {
String response = VideoGenWithImg.generateContent(VIDEO_GEN_PREVIEW_MODEL, OUTPUT_GCS_URI);
String response = VideoGenWithImg.generateContent(VIDEO_GEN_MODEL, OUTPUT_GCS_URI);
assertThat(response).isNotEmpty();
assertThat(bout.toString()).contains(OUTPUT_GCS_URI);
}
Expand Down