Gemini version 0.5.* generate_content doesn't provide usageMetadata if stream=True
Description of the bug:
I believe this is related to https://github.com/google/generative-ai-go/issues/97
Actual vs expected behavior:
As far as I remember, it worked earlier this week. I tried all version 0.5.* but the same issue. The issue was fixed when I utilized version 0.4.0
Any other information you'd like to share?
No response
@Mersanko, I tried replicating the issue on our end and model.generate_content works with stream=True parameter.
Ref: Screenshot below. Package version used: google.generativeai==0.5.2
Can you please share a colab gist with replicated issue so we can reproduce the issue on our end. Thank you.
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.
This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!