Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ import kotlinx.serialization.Serializable
* to the model as a prompt. **Important:** this property does not include billable image, video or
* other non-text input. See
* [Vertex AI pricing](https://cloud.google.com/vertex-ai/generative-ai/pricing) for details.
* @deprecated This field is deprecated and will be removed in a future version.
* @property promptTokensDetails The breakdown, by modality, of how many tokens are consumed by the
* prompt.
*/
public class CountTokensResponse(
public val totalTokens: Int,
public val totalBillableCharacters: Int? = null,
@Deprecated("This field is deprecated and will be removed in a future version.") public val totalBillableCharacters: Int? = null,
public val promptTokensDetails: List<ModalityTokenCount> = emptyList(),
) {
public operator fun component1(): Int = totalTokens
Expand Down
Loading