Skip to content

Commit 0874a3e

Browse files
Deprecate totalBillableCharacters in firebase-ai
I've marked the `totalBillableCharacters` field in `CountTokensResponse.kt` as deprecated. This includes adding the `@Deprecated` annotation and a corresponding KDoc `@deprecated` tag. The field is planned to be removed in a future version of the SDK.
1 parent f08e0c7 commit 0874a3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/CountTokensResponse.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ import kotlinx.serialization.Serializable
3030
* to the model as a prompt. **Important:** this property does not include billable image, video or
3131
* other non-text input. See
3232
* [Vertex AI pricing](https://cloud.google.com/vertex-ai/generative-ai/pricing) for details.
33+
* @deprecated This field is deprecated and will be removed in a future version.
3334
* @property promptTokensDetails The breakdown, by modality, of how many tokens are consumed by the
3435
* prompt.
3536
*/
3637
public class CountTokensResponse(
3738
public val totalTokens: Int,
38-
public val totalBillableCharacters: Int? = null,
39+
@Deprecated("This field is deprecated and will be removed in a future version.") public val totalBillableCharacters: Int? = null,
3940
public val promptTokensDetails: List<ModalityTokenCount> = emptyList(),
4041
) {
4142
public operator fun component1(): Int = totalTokens

0 commit comments

Comments
 (0)