From 97546d1cdf0dcbf81fb757ab44cff7b223f23cc4 Mon Sep 17 00:00:00 2001 From: pavi Date: Mon, 22 Jul 2024 08:23:28 +0530 Subject: [PATCH] . --- geminikit/gemini.py | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/geminikit/gemini.py b/geminikit/gemini.py index 8a97671..3625e7e 100644 --- a/geminikit/gemini.py +++ b/geminikit/gemini.py @@ -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_", "") @@ -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) diff --git a/setup.py b/setup.py index 26be92f..1d30635 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def get_long_description(): # setup( name="geminikit", - version="1.1.1", + version="1.1.2", author="paviththanan", author_email="rkpavi06@gmail.com", description="The python package that returns Response of Google Gemini through Cookies.",