From 3160a73b6971c7aa284d557d779d214757b286c0 Mon Sep 17 00:00:00 2001 From: pavi Date: Mon, 22 Jul 2024 08:25:45 +0530 Subject: [PATCH] . --- geminikit/gemini.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geminikit/gemini.py b/geminikit/gemini.py index 3625e7e..d8fc9c9 100644 --- a/geminikit/gemini.py +++ b/geminikit/gemini.py @@ -184,7 +184,7 @@ def get_img_bytes(self, url): except httpx.RequestError as e: raise Exception(f"Failed to get image bytes from URL. Error: {str(e)}") - def share(self, conversation_id, response_id, choice_id, req_id, fsid): + def share(self, conversation_id, response_id, choice_id, req_id, fsid,**args): title = args.get('title') or "geminikit" title = urllib.parse.quote(title) bott = self.bott @@ -214,7 +214,7 @@ def share(self, conversation_id, response_id, choice_id, req_id, fsid): text = str(response.content) try: a = (re.findall(r'null,(.*?)"]",', text)[0]).split('"')[-1].replace("\\", "") - return f"https://g.co/bard/share/{a}" + return f"https://gemini.google.com/share/{a}" except IndexError: raise Exception(f"Failed to extract share URL from response: {text}") diff --git a/setup.py b/setup.py index 1d30635..1bd0baf 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def get_long_description(): # setup( name="geminikit", - version="1.1.2", + version="1.1.3", author="paviththanan", author_email="rkpavi06@gmail.com", description="The python package that returns Response of Google Gemini through Cookies.",