mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 03:54:57 +03:00
Remove deprecated "use_chatgpt_api" parameter
This commit is contained in:
@@ -60,7 +60,7 @@ If you want to add payments to your bot and create profitable business – write
|
|||||||
- *15 Mar 2023*: Added message streaming. Now you don't have to wait until the whole message is ready, it's streamed to Telegram part-by-part (watch demo)
|
- *15 Mar 2023*: Added message streaming. Now you don't have to wait until the whole message is ready, it's streamed to Telegram part-by-part (watch demo)
|
||||||
- *9 Mar 2023*: Now you can easily create your own Chat Modes by editing `config/chat_modes.yml`
|
- *9 Mar 2023*: Now you can easily create your own Chat Modes by editing `config/chat_modes.yml`
|
||||||
- *8 Mar 2023*: Added voice message recognition with [OpenAI Whisper API](https://openai.com/blog/introducing-chatgpt-and-whisper-apis). Record a voice message and ChatGPT will answer you!
|
- *8 Mar 2023*: Added voice message recognition with [OpenAI Whisper API](https://openai.com/blog/introducing-chatgpt-and-whisper-apis). Record a voice message and ChatGPT will answer you!
|
||||||
- *2 Mar 2023*: Added support of [ChatGPT API](https://platform.openai.com/docs/guides/chat/introduction). It's enabled by default and can be disabled with `use_chatgpt_api` option in config. Don't forget to **rebuild** you docker image (`--build`).
|
- *2 Mar 2023*: Added support of [ChatGPT API](https://platform.openai.com/docs/guides/chat/introduction).
|
||||||
|
|
||||||
## Bot commands
|
## Bot commands
|
||||||
- `/retry` – Regenerate last bot answer
|
- `/retry` – Regenerate last bot answer
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ config_env = dotenv.dotenv_values(config_dir / "config.env")
|
|||||||
# config parameters
|
# config parameters
|
||||||
telegram_token = config_yaml["telegram_token"]
|
telegram_token = config_yaml["telegram_token"]
|
||||||
openai_api_key = config_yaml["openai_api_key"]
|
openai_api_key = config_yaml["openai_api_key"]
|
||||||
use_chatgpt_api = config_yaml.get("use_chatgpt_api", True)
|
|
||||||
allowed_telegram_usernames = config_yaml["allowed_telegram_usernames"]
|
allowed_telegram_usernames = config_yaml["allowed_telegram_usernames"]
|
||||||
new_dialog_timeout = config_yaml["new_dialog_timeout"]
|
new_dialog_timeout = config_yaml["new_dialog_timeout"]
|
||||||
enable_message_streaming = config_yaml.get("enable_message_streaming", True)
|
enable_message_streaming = config_yaml.get("enable_message_streaming", True)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
telegram_token: ""
|
telegram_token: ""
|
||||||
openai_api_key: ""
|
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 positive integers and/or channel ids as negative integers
|
allowed_telegram_usernames: [] # if empty, the bot is available to anyone. pass a username string to allow it and/or user ids as positive integers and/or channel ids as negative integers
|
||||||
new_dialog_timeout: 600 # new dialog starts after timeout (in seconds)
|
new_dialog_timeout: 600 # new dialog starts after timeout (in seconds)
|
||||||
return_n_generated_images: 1
|
return_n_generated_images: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user