File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/kotlin/com/google/firebase/vertexai/common Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
-
2
+ * [ feature ] ` CountTokenRequest ` now includes ` GenerationConfig ` from the model.
3
3
4
4
# 16.2.0
5
5
* [ fixed] Added support for new values sent by the server for ` FinishReason ` and ` BlockReason ` .
69
69
* [ feature] Added support for ` responseMimeType ` in ` GenerationConfig ` .
70
70
* [ changed] Renamed ` GoogleGenerativeAIException ` to ` FirebaseVertexAIException ` .
71
71
* [ changed] Updated the KDocs for various classes and functions.
72
-
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ internal data class CountTokensRequest(
49
49
val contents : List <Content .Internal >? = null ,
50
50
val tools : List <Tool .Internal >? = null ,
51
51
@SerialName(" system_instruction" ) val systemInstruction : Content .Internal ? = null ,
52
+ val generationConfig : GenerationConfig .Internal ? = null
52
53
) : Request {
53
54
companion object {
54
55
@@ -58,6 +59,7 @@ internal data class CountTokensRequest(
58
59
contents = generateContentRequest.contents,
59
60
tools = generateContentRequest.tools,
60
61
systemInstruction = generateContentRequest.systemInstruction,
62
+ generationConfig = generateContentRequest.generationConfig,
61
63
)
62
64
}
63
65
}
You can’t perform that action at this time.
0 commit comments