Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemini version 0.5.* generate_content doesn't provide usageMetadata if stream=True #317

Open
Mersanko opened this issue May 3, 2024 · 2 comments
Labels
component:python sdk Issue/PR related to Python SDK status:awaiting user response Awaiting a response from the author status:stale Issue/PR will be closed automatically if there's no further activity type:bug Something isn't working

Comments

@Mersanko
Copy link

Mersanko commented May 3, 2024

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
issue97

Any other information you'd like to share?

No response

@singhniraj08
Copy link

@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.

image

@singhniraj08 singhniraj08 added the status:awaiting user response Awaiting a response from the author label May 6, 2024
Copy link

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.

@github-actions github-actions bot added the status:stale Issue/PR will be closed automatically if there's no further activity label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK status:awaiting user response Awaiting a response from the author status:stale Issue/PR will be closed automatically if there's no further activity type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants