Optional
Whether or not to include token usage when streaming. This will include an extra chunk at the end of the stream with eventType: "stream-end" and the token usage in usage_metadata.
eventType: "stream-end"
usage_metadata
{true} Copy
{true}
Generated using TypeDoc
Whether or not to include token usage when streaming. This will include an extra chunk at the end of the stream with
eventType: "stream-end"
and the token usage inusage_metadata
.