Skip to content

Commit db8c49c

Browse files
authored
Merge branch 'main' into rl.fix.vertex.tests
2 parents 6b04145 + bdb330e commit db8c49c

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/create_releases.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
jobs:
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:
@@ -25,6 +28,9 @@ jobs:
2528

2629
create-pull-request:
2730
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
33+
pull-requests: write
2834
steps:
2935
- uses: actions/[email protected]
3036
with:

firebase-vertexai/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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`.
@@ -69,4 +71,3 @@
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-

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/common/Request.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dexmaker = "2.28.1"
2323
dexmakerVersion = "1.2"
2424
espressoCore = "3.6.1"
2525
featureDelivery = "2.1.0"
26-
firebaseAppdistributionGradle = "5.0.0"
26+
firebaseAppdistributionGradle = "5.1.1"
2727
firebaseCommon = "21.0.0"
2828
firebaseComponents = "18.0.0"
2929
firebaseCrashlyticsGradle = "3.0.2"

0 commit comments

Comments
 (0)