gemini-python icon indicating copy to clipboard operation
gemini-python copied to clipboard

Return full response object from api_query

Open bryanroth opened this issue 2 years ago • 0 comments

I noticed that in private_client.py the api_query method only returns the JSON data from the response object instead of the full response object. Is there a reason behind this?

My issue is that it would be useful to leverage the status code of the response to determine how to handle the response on the client. Currently, you would have to parse the JSON data for certain text in order to handle errors for example.

bryanroth avatar Mar 25 '22 15:03 bryanroth