Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
feat: add gemini parser methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Mar 20, 2024
1 parent 0a5464c commit 89bd391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bardapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,10 @@ def get_answer(

try:
parser = ResponseParser(cookies=self.cookies)
return parser.parse(resp)
return parser.parse(resp)
except:
pass


# Post-processing of response
resp_dict = json.loads(resp.content.splitlines()[-5])[0][2]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_long_description():
"httpx[http2]>=0.20.0",
"requests",
"colorama",
"python-gemini-api"
"python-gemini-api",
],
extras_require={
"translate": [
Expand Down

0 comments on commit 89bd391

Please sign in to comment.