Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions firebase-vertexai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unreleased

* [feature] `CountTokenRequest` now includes `GenerationConfig` from the model.

# 16.2.0
* [fixed] Added support for new values sent by the server for `FinishReason` and `BlockReason`.
Expand Down Expand Up @@ -69,4 +69,3 @@
* [feature] Added support for `responseMimeType` in `GenerationConfig`.
* [changed] Renamed `GoogleGenerativeAIException` to `FirebaseVertexAIException`.
* [changed] Updated the KDocs for various classes and functions.

Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ internal data class CountTokensRequest(
val contents: List<Content.Internal>? = null,
val tools: List<Tool.Internal>? = null,
@SerialName("system_instruction") val systemInstruction: Content.Internal? = null,
val generationConfig: GenerationConfig.Internal? = null
) : Request {
companion object {

Expand All @@ -58,6 +59,7 @@ internal data class CountTokensRequest(
contents = generateContentRequest.contents,
tools = generateContentRequest.tools,
systemInstruction = generateContentRequest.systemInstruction,
generationConfig = generateContentRequest.generationConfig,
)
}
}
Expand Down
Loading