Skip to content

Commit

Permalink
Make candidateTokenCount optional for cases with no candidate (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: David Motsonashvili <davidmotson@google.com>
  • Loading branch information
davidmotson and David Motsonashvili authored Apr 3, 2024
1 parent f14808f commit 91d69a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ data class GenerateContentResponse(
@Serializable
data class UsageMetadata(
val promptTokenCount: Int,
val candidatesTokenCount: Int,
val candidatesTokenCount: Int?,
val totalTokenCount: Int
)

0 comments on commit 91d69a9

Please sign in to comment.