You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java
+66
Original file line number
Diff line number
Diff line change
@@ -646,6 +646,21 @@ public ResponseStream<GenerateContentResponse> generateContentStream(String text
646
646
returngenerateContentStream(text, null, null);
647
647
}
648
648
649
+
/**
650
+
* Generate content with streaming support from generative model given a text and configs.
651
+
*
652
+
* @param text a text message to send to the generative model
653
+
* @param config a {@link GenerateContentConfig} that contains all the configs in making a
654
+
* generate content api call
655
+
* @return a {@link ResponseStream} that contains a streaming of {@link
Copy file name to clipboardExpand all lines: java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java
+31
Original file line number
Diff line number
Diff line change
@@ -639,4 +639,35 @@ public void testGenerateContentStreamwithDefaultTools() throws Exception {
0 commit comments