Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi committed Jul 22, 2024
1 parent 97546d1 commit 3160a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geminikit/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_long_description():
#
setup(
name="geminikit",
version="1.1.2",
version="1.1.3",
author="paviththanan",
author_email="[email protected]",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit 3160a73

Please sign in to comment.