According to the docs, there is now an option to add a final chunk with usage data, like so: stream_options: { include_usage: true }
But:
- I don’t see that chunk in my test runs.
- What happens when the stream is terminated? How do I get the value?
In other words, this is still unresolved.