Add message streaming

* Add message streaming
* Update README.md
This commit is contained in:
Karim Iskakov
2023-03-15 19:20:43 +03:00
committed by GitHub
parent 2b4d4ad860
commit 1ba09de2b9
6 changed files with 226 additions and 74 deletions
+2
View File
@@ -3,7 +3,9 @@ openai_api_key: ""
use_chatgpt_api: true
allowed_telegram_usernames: [] # if empty, the bot is available to anyone. pass a username string to allow it and/or user ids as integers
new_dialog_timeout: 600 # new dialog starts after timeout (in seconds)
enable_message_streaming: true # if set, messages will be shown to user word-by-word
# prices
chatgpt_price_per_1000_tokens: 0.002
gpt_price_per_1000_tokens: 0.02
whisper_price_per_1_min: 0.006