Skip to content

Commit

Permalink
Merge pull request #27 from F33RNI/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
F33RNI authored May 19, 2023
2 parents 5cc62f1 + 65ec644 commit 715de04
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions BotHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -181,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)

----------

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from JSONReaderWriter import load_json

# GPT-Telegramus version
__version__ = "2.1.0"
__version__ = "2.1.2"

# Logging level
LOGGING_LEVEL = logging.INFO
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 715de04

Please sign in to comment.