From 6ae9a7899ed6d72673b007c8e562ed2598772a64 Mon Sep 17 00:00:00 2001 From: F33RNI Date: Fri, 19 May 2023 21:56:14 +0300 Subject: [PATCH 1/4] Add star history to README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fe950c78..f5c8251e 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Support the project by buying and listening to my music 🎵 - 🟦 [Bandcamp](https://f3rni.bandcamp.com) - 🟧 [SoundCloud](https://soundcloud.com/f3rni) +[![Star History Chart](https://api.star-history.com/svg?repos=F33RNI/GPT-Telegramus&type=Date)](https://star-history.com/#F33RNI/GPT-Telegramus&Date) + ---------- ## 📙 Dependencies From e5819519be27e81972920594610f7c65c18773fe Mon Sep 17 00:00:00 2001 From: F33RNI Date: Fri, 19 May 2023 22:00:22 +0300 Subject: [PATCH 2/4] Update revChatGPT, EdgeGPT and GoogleBard --- main.py | 2 +- requirements.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 4a8d5fa4..841ac7e3 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ from JSONReaderWriter import load_json # GPT-Telegramus version -__version__ = "2.1.0" +__version__ = "2.1.1" # Logging level LOGGING_LEVEL = logging.INFO diff --git a/requirements.txt b/requirements.txt index 8306c74d..22f138b4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ psutil>=5.9.1 telegram~=0.0.1 python-telegram-bot>=20.2 -revChatGPT==5.0.2 -EdgeGPT==0.3.8.1 +revChatGPT==5.0.3 +EdgeGPT==0.4.4 openai>=0.26.4 tiktoken>=0.2.0 OpenAIAuth>=0.3.2 asyncio==3.4.3 -GoogleBard==1.0.0 +GoogleBard==1.0.3 requests>=2.28.1 \ No newline at end of file From cd96f5b5345746bb967fe2410d759830db87a126 Mon Sep 17 00:00:00 2001 From: F33RNI Date: Fri, 19 May 2023 22:04:55 +0300 Subject: [PATCH 3/4] Make proper clear message --- BotHandler.py | 3 +++ main.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BotHandler.py b/BotHandler.py index 85343aae..5f1a89cb 100644 --- a/BotHandler.py +++ b/BotHandler.py @@ -498,14 +498,17 @@ async def bot_command_clear(self, update: Update, context: ContextTypes.DEFAULT_ # Clear ChatGPT if requested_module == "chatgpt": self.chatgpt_module.clear_conversation_for_user(user) + requested_module = self.messages["modules"][0] # Clear EdgeGPT elif requested_module == "edgegpt": self.edgegpt_module.clear_conversation() + requested_module = self.messages["modules"][2] # Clear Bard elif requested_module == "bard": self.bard_module.clear_conversation_for_user(user) + requested_module = self.messages["modules"][3] # Wrong module else: diff --git a/main.py b/main.py index 841ac7e3..1b778eae 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ from JSONReaderWriter import load_json # GPT-Telegramus version -__version__ = "2.1.1" +__version__ = "2.1.2" # Logging level LOGGING_LEVEL = logging.INFO From 65ec644616876d3fdbfd41e8f0ef3886f2057ea2 Mon Sep 17 00:00:00 2001 From: F33RNI Date: Fri, 19 May 2023 22:12:19 +0300 Subject: [PATCH 4/4] TODO update --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f5c8251e..47417dc5 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,7 @@ You can enable and configure data collection in config in `data_collecting` bloc ## 📝 TODO - Add some free GPT-4 model +- Add buttons to the telegram bot (reply markup) ----------