Skip to content

Commit 80495ad

Browse files
copybara-service[bot]Zhenyi Qi
and
Zhenyi Qi
authored
BREAKING_CHANGE: [vertexai] Make ChatSession and GenerativeModel final (#10569)
PiperOrigin-RevId: 617274754 Co-authored-by: Zhenyi Qi <zhenyiqi@google.com>
1 parent 0dd7a94 commit 80495ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.List;
3131

3232
/** Represents a conversation between the user and the model */
33-
public class ChatSession {
33+
public final class ChatSession {
3434
private final GenerativeModel model;
3535
private List<Content> history = new ArrayList<>();
3636
private ResponseStream<GenerateContentResponse> currentResponseStream = null;

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import java.util.List;
3434

3535
/** This class holds a generative model that can complete what you provided. */
36-
public class GenerativeModel {
36+
public final class GenerativeModel {
3737
private final String modelName;
3838
private final String resourceName;
3939
private final VertexAI vertexAi;

0 commit comments

Comments
 (0)