diff --git a/BardModule.py b/BardModule.py index c3fe22cc..5d02a615 100644 --- a/BardModule.py +++ b/BardModule.py @@ -63,9 +63,12 @@ def initialize(self, proxy=None) -> None: # Initialize chatbot if proxy: - self._chatbot = Bard.Chatbot(self.config["bard"]["token"], proxy=proxy) + self._chatbot = Bard.Chatbot(self.config["bard"]["secure_1psid"], + self.config["bard"]["secure_1psidts"], + proxy=proxy) else: - self._chatbot = Bard.Chatbot(self.config["bard"]["token"]) + self._chatbot = Bard.Chatbot(self.config["bard"]["secure_1psid"], + self.config["bard"]["secure_1psidts"]) # Done? if self._chatbot is not None: logging.info("Bard module initialized") diff --git a/config.json b/config.json index 0461033d..82eab70b 100644 --- a/config.json +++ b/config.json @@ -102,13 +102,16 @@ "__comment06__": "BARD SETTINGS", "bard": { "__comment01__": "Go to Application -> Cookies -> __Secure-1PSID. Copy the value of that cookie", - "token": "", + "secure_1psid": "", - "__comment02__": "IF NEEDED, SPECIFY PROXY IN THE http://IP:PORT FORMAT (SPECIFY HTTP EVEN IF IT IS HTTPS PROXY)", - "__comment03__": "OR SET TO auto AND ENABLE proxy_automation TO AUTOMATICALLY SEARCH WORKING PROXIES", + "__comment02__": "Go to Application -> Cookies -> __Secure-1PSIDTS. Copy the value of that cookie", + "secure_1psidts": "", + + "__comment03__": "IF NEEDED, SPECIFY PROXY IN THE http://IP:PORT FORMAT (SPECIFY HTTP EVEN IF IT IS HTTPS PROXY)", + "__comment04__": "OR SET TO auto AND ENABLE proxy_automation TO AUTOMATICALLY SEARCH WORKING PROXIES", "proxy": "", - "__comment04__": "RESPONSE TIMEOUT (IN SECONDS)", + "__comment05__": "RESPONSE TIMEOUT (IN SECONDS)", "timeout_seconds": 120 }, diff --git a/main.py b/main.py index f913e921..581be89e 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ from JSONReaderWriter import load_json # GPT-Telegramus version -__version__ = "3.0.3" +__version__ = "3.1.0" # Logging level LOGGING_LEVEL = logging.INFO diff --git a/requirements.txt b/requirements.txt index a36a443b..787d0dd2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ python-telegram-bot>=20.3 -revChatGPT==6.7.3 +revChatGPT==6.8.6 EdgeGPT==0.10.16 openai>=0.26.4 tiktoken>=0.2.0 OpenAIAuth>=0.3.2 asyncio==3.4.3 -GoogleBard==1.4.0 +GoogleBard==2.1.0 requests>=2.28.1 telegram>=0.0.1 psutil>=5.9.4