You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-21
Original file line number
Diff line number
Diff line change
@@ -46,26 +46,6 @@ The ChatGPT Telegram Bot is a powerful Telegram bot that utilizes the latest GPT
46
46
| GOOGLE_AI_API_KEY | Google AI offical API key. | No |
47
47
| GROQ_API_KEY | Groq AI offical API key. | No |
48
48
49
-
## 🔌 Plugins
50
-
51
-
Our plugin system has been successfully developed and is now fully operational. We welcome everyone to contribute their code to enrich our plugin library. All plugins can be activated or deactivated using the `/info` command. The following plugins are currently supported:
52
-
53
-
-**Web Search**: By default, DuckDuckGo search is provided. Google search is automatically activated when the `GOOGLE_CSE_ID` and `GOOGLE_API_KEY` environment variables are set.
54
-
-**Time Retrieval**: Retrieves the current time, date, and day of the week in the GMT+8 time zone.
55
-
-**URL Summary**: Automatically extracts URLs from queries and responds based on the content of the URLs.
56
-
-**Version Information**: Displays the current version of the bot, commit hash, update time, and developer name.
57
-
58
-
To develop plugins, please follow the steps outlined below:
59
-
60
-
- Initially, you need to add the environment variable for the plugin in the `config.PLUGINS` dictionary located in the `config.py` file. The value can be customized to be either enabled or disabled by default. It is advisable to use uppercase letters for the entire environment variable.
61
-
- Subsequently, append the function's name and description in the `utils/function_call.py` file.
62
-
- Then, enhance the `ask_stream` function in the `utils/chatgpt2api.py` file with the function's processing logic. You can refer to the existing examples within the `ask_stream` method for guidance on how to write it.
63
-
- Following that, write the function, as mentioned in the `utils/function_call.py` file, in the `utils/plugins.py` file.
64
-
- Next, in the `bot.py` file, augment the `update_first_buttons_message` function with buttons, enabling users to freely toggle plugins using the `info` command.
65
-
- Lastly, don't forget to add the plugin's description in the plugins section of the README.
66
-
67
-
Please note that the above steps are a general guide and may need to be adjusted based on the specific requirements of your plugin.
68
-
69
49
## Zeabur Remote Deployment (Recommended)
70
50
71
51
One-click deployment:
@@ -272,7 +252,7 @@ In a group chat scenario, if the environment variable `NICK` is not set, the bot
272
252
273
253
- How many messages will the history keep?
274
254
275
-
Apart from the latest `gpt-4-turbo-preview` model, the official context supports 128k tokens, but this project limits it to 16k tokens. All other models use the official context length settings, for example, the `gpt-3.5-turbo-16k` context is 16k, the `gpt-4-32k` context is 32k, and the `Claude2` context is 200k. This limitation is implemented to save user costs, as most scenarios do not require a high context. If you have specific needs, you can modify the context limits for each model in the `utils/chatgpt2api.py` file.
255
+
Apart from the latest `gpt-4-turbo-preview` model, the official context supports 128k tokens, but this project limits it to 16k tokens. All other models use the official context length settings, for example, the `gpt-3.5-turbo-16k` context is 16k, the `gpt-4-32k` context is 32k, and the `Claude2` context is 200k. This limitation is implemented to save user costs, as most scenarios do not require a high context.
# config.systemprompt = f"You are ChatGPT, a large language model trained by OpenAI. Respond conversationally in {config.LANGUAGE}. Knowledge cutoff: 2021-09. Current date: [ {config.Current_Date} ]"
0 commit comments