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
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,41 @@ public Builder setTools(List<Tool> tools) {
181
181
}
182
182
}
183
183
184
+
/**
185
+
* Creates a copy of the current model with updated GenerationConfig.
186
+
*
187
+
* @param generationConfig a {@link com.google.cloud.vertexai.api.GenerationConfig} that will be
188
+
* used in the new model.
189
+
* @return a new {@link GenerativeModel} instance with the specified GenerationConfig.
Copy file name to clipboardExpand all lines: java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -416,6 +416,34 @@ public void testGenerateContentwithDefaultTools() throws Exception {
0 commit comments