Skip to content

Commit

Permalink
Make candidateTokenCount optional for cases with no candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Apr 2, 2024
1 parent f22a52f commit 9281ada
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 9281ada

Please sign in to comment.