File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
src/main/kotlin/com/google/firebase/vertexai/common Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1515jobs :
1616 create-branches :
1717 runs-on : ubuntu-latest
18+ permissions :
19+ contents : write
20+ pull-requests : write
1821 env :
1922 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2023 steps :
2528
2629 create-pull-request :
2730 runs-on : ubuntu-latest
31+ permissions :
32+ contents : write
33+ pull-requests : write
2834 steps :
29353036 with :
Original file line number Diff line number Diff line change 11# Unreleased
22* [ changed] Added new exception type for quota exceeded scenarios.
3+ * [ feature] ` CountTokenRequest ` now includes ` GenerationConfig ` from the model.
4+
35
46# 16.2.0
57* [ fixed] Added support for new values sent by the server for ` FinishReason ` and ` BlockReason ` .
6971* [ feature] Added support for ` responseMimeType ` in ` GenerationConfig ` .
7072* [ changed] Renamed ` GoogleGenerativeAIException ` to ` FirebaseVertexAIException ` .
7173* [ 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(
4949 val contents : List <Content .Internal >? = null ,
5050 val tools : List <Tool .Internal >? = null ,
5151 @SerialName(" system_instruction" ) val systemInstruction : Content .Internal ? = null ,
52+ val generationConfig : GenerationConfig .Internal ? = null
5253) : Request {
5354 companion object {
5455
@@ -58,6 +59,7 @@ internal data class CountTokensRequest(
5859 contents = generateContentRequest.contents,
5960 tools = generateContentRequest.tools,
6061 systemInstruction = generateContentRequest.systemInstruction,
62+ generationConfig = generateContentRequest.generationConfig,
6163 )
6264 }
6365}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ dexmaker = "2.28.1"
2323dexmakerVersion = " 1.2"
2424espressoCore = " 3.6.1"
2525featureDelivery = " 2.1.0"
26- firebaseAppdistributionGradle = " 5.0.0 "
26+ firebaseAppdistributionGradle = " 5.1.1 "
2727firebaseCommon = " 21.0.0"
2828firebaseComponents = " 18.0.0"
2929firebaseCrashlyticsGradle = " 3.0.2"
You can’t perform that action at this time.
0 commit comments