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 8333b42 commit 97546d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions geminikit/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def get_img_bytes(self, url):
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):
title = args.get('title') or "geminikit"
title = urllib.parse.quote(title)
bott = self.bott
SNlM0e = self.SNlM0e
ccid = conversation_id.replace("c_", "")
Expand All @@ -201,6 +203,7 @@ def share(self, conversation_id, response_id, choice_id, req_id, fsid):
data = data.replace("edit_rid", response_id)
data = data.replace("edit_rc", choice_id)
data = data.replace("edit_sni", SNlM0e)
data = data.replace("bard_kpbot", title)

try:
response = self.client.post('https://gemini.google.com/_/BardChatUi/data/batchexecute', params=params, headers=header_gen, data=data)
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.1",
version="1.1.2",
author="paviththanan",
author_email="[email protected]",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit 97546d1

Please sign in to comment.