gemini-python
gemini-python copied to clipboard
Return full response object from api_query
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.