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

Update chat_models.py #664

Closed
wants to merge 1 commit into from
Closed

Conversation

PragyanTiwari
Copy link

PR Description

Fixed a bug that caused incorrect or incomplete retrieval of the usage_metadata parameter within the response_chunk object.
This pull request is related to issue : #662

Type

🐛 Bug Fix

Changes (Optional)

updated

usage_metadata = proto.Message.to_dict(response_chunk['usage_metadata'])

previous src code line:

usage_metadata = proto.Message.to_dict(response_chunk.usage_metadata)

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 this pull request may close these issues.

1 participant