Skip to content

Commit

Permalink
fixed prompt and test (#9430)
Browse files Browse the repository at this point in the history
  • Loading branch information
TetyanaYahodska authored Aug 1, 2024
1 parent 2790431 commit 19adb6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void streamingQuestion(String projectId, String location, String m
GenerativeModel model = new GenerativeModel(modelName, vertexAI);

// Stream the result.
model.generateContentStream("Why is the sky blue?")
model.generateContentStream("Write a story about a magic backpack.")
.stream()
.forEach(System.out::println);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void testSingleTurnMultimodal() throws IOException {
@Test
public void testStreamingQuestions() throws Exception {
StreamingQuestionAnswer.streamingQuestion(PROJECT_ID, LOCATION, GEMINI_FLASH);
assertThat(bout.toString()).contains("Rayleigh scattering");
assertThat(bout.toString()).isNotEmpty();
}

@Test
Expand Down

0 comments on commit 19adb6f

Please sign in to comment.