/balance command + limit of dialog context + user state move to user data

This commit is contained in:
Karim Iskakov
2023-01-17 09:05:01 -06:00
parent c255d4cb15
commit e2869135a8
6 changed files with 131 additions and 77 deletions
+10 -4
View File
@@ -9,10 +9,16 @@ This repo is ChatGPT re-created with GPT-3.5 LLM as Telegram Bot. **And it works
- Low latency replies (it usually takes about 3-5 seconds)
- No request limits
- Code highlighting
- Different chat modes (👩🏼‍🎓 Assistant, 👩🏼‍💻 Code Assistant, 🎬 Movie Expert)
- `/retry` command to regenerate last bot answer
- Control of allowed Telegram users
- *Next up*: warn user that the size of the context is close to the maximum
- Different chat modes: 👩🏼‍🎓 Assistant, 👩🏼‍💻 Code Assistant, 🎬 Movie Expert. More soon
- List of allowed Telegram users
- Track $ balance spent on OpenAI API
## Bot commands
- `/retry` Regenerate last bot answer
- `/new` Start new dialog
- `/mode` Select chat mode
- `/balance` Show balance
- `/help` Show help
## Setup
1. Get your [OpenAI API](https://openai.com/api/) key