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

usageMetadata not present on generateContentStream response #174

Closed
jdoucy opened this issue Jun 17, 2024 · 1 comment · Fixed by #175
Closed

usageMetadata not present on generateContentStream response #174

jdoucy opened this issue Jun 17, 2024 · 1 comment · Fixed by #175

Comments

@jdoucy
Copy link
Contributor

jdoucy commented Jun 17, 2024

Description of the bug:

When using generateContentStream, the provided response promise contains generated text, but not usageMetadata

Actual vs expected behavior:

Response promise must contains usageMetadata

Any other information you'd like to share?

It worked when using generateContent (without streaming)

@jdoucy
Copy link
Contributor Author

jdoucy commented Jun 17, 2024

I fixed it locally, currently creating a clean merge request 😊

jdoucy added a commit to jdoucy/generative-ai-js that referenced this issue Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant