From 89bd39168c1ca5039cf3692056dd44238912651b Mon Sep 17 00:00:00 2001 From: dsdanielpark Date: Wed, 20 Mar 2024 16:38:13 +0900 Subject: [PATCH] feat: add gemini parser methods --- bardapi/core.py | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bardapi/core.py b/bardapi/core.py index 8ec04049..ed79de7b 100644 --- a/bardapi/core.py +++ b/bardapi/core.py @@ -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] diff --git a/setup.py b/setup.py index 5f8baffb..a621bc88 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ def get_long_description(): "httpx[http2]>=0.20.0", "requests", "colorama", - "python-gemini-api" + "python-gemini-api", ], extras_require={ "translate": [