Closed andrewheard closed 2 months ago
Added usageMetadata to GenerateContentResponse. This is a port of https://github.com/firebase/firebase-ios-sdk/pull/12777.
usageMetadata
GenerateContentResponse
Notes:
promptFeedback
testGenerateContent_success_basicReplyShort
promptTokenCount
totalTokenCount
0
Added
usageMetadata
toGenerateContentResponse
. This is a port of https://github.com/firebase/firebase-ios-sdk/pull/12777.Notes:
promptFeedback
checks fromtestGenerateContent_success_basicReplyShort
since it is no longer populated by the backend in this scenario.promptTokenCount
andtotalTokenCount
are added to the responses.0
when omitted.