We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I got this error from here (v2.0.8)
AttributeError 'NoneType' object has no attribute 'usage_metadata'
It looks like response_chunk can be None
response_chunk
None
The text was updated successfully, but these errors were encountered:
I think that the response_chunk attribute, i.e., usage_metadata, isn't set during initialization.
usage_metadata
Instead, we need to use a dict-style method to dynamically retrieve the usage_metadata:
usage_metadata = proto.Message.to_dict(response_chunk['usage_metadata'])
I made that update in my forked repo, check for it here
Sorry, something went wrong.
@luke-han could you provide a reproducible sample, please?
No branches or pull requests
Hello,
I got this error from here (v2.0.8)
It looks like
response_chunk
can beNone
The text was updated successfully, but these errors were encountered: