Content-Length: 290374 | pFad | https://github.com/googleapis/google-cloud-java/commit/80495ada838c38f42f8aa397b1e57681f46103bb

8A BREAKING_CHANGE: [vertexai] Make ChatSession and GenerativeModel fina… · googleapis/google-cloud-java@80495ad · GitHub
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-java/commit/80495ada838c38f42f8aa397b1e57681f46103bb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy