diff --git a/README.md b/README.md index 784fa3ce..120a452e 100644 --- a/README.md +++ b/README.md @@ -49,14 +49,15 @@ Support the project by buying and listening to my music 🎵 1. Install Python and pip 2. Download source code 3. Install requirements `pip install -r requirements.txt --upgrade` -4. For **API type 0** (Official API, more "stupid" model, uses credits): +4. For **API type 1** (recommended) (revChatGPT API V1, free, uses same model as official website): + 1. Create account at OpenAI. Make sure you have access to https://chat.openai.com/ + 2. Open https://chat.openai.com/api/auth/session + 3. Copy value of `accessToken` into `access_token` in `chatgpt_auth` in `chatgpt_api_1` in `settings.json` file + 4. If you have conversation id you can specify it in `conversation_id` in `chatgpt_dialog` in `chatgpt_api_1` in `settings.json` file + 5. Configure proxy if needed +5. For **API type 0** (Official API, more "stupid" model, uses credits): 1. Generate API Key https://platform.openai.com/account/api-keys and paste it into `open_ai_api_key` in `chatgpt_api_0` in `settings.json` file 2. If you have conversation id you can specify it in `existing_conversation_id` in `chatgpt_api_0` in `settings.json` file -5. For **API type 1** (revChatGPT API V1, free, uses same model as official website): - 1. Create account at OpenAI using email and password - 2. Type OpenAI account email and password into `email` and `password` in `chatgpt_auth` in `chatgpt_api_1` in `settings.json` file - 3. If you have conversation id you can specify it in `conversation_id` in `chatgpt_dialog` in `chatgpt_api_1` in `settings.json` file - 4. Configure proxy if needed 6. For DALL-E, generate API Key https://platform.openai.com/account/api-keys 7. Type Generated OpenAI API Key into `open_ai_api_key` in `dalle` in `settings.json` file 8. Create bot at https://t.me/BotFather diff --git a/main.py b/main.py index d1533703..dfaf4dce 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ import Authenticator import BotHandler -TELEGRAMUS_VERSION = 'beta_1.7.1' +TELEGRAMUS_VERSION = 'beta_1.7.2' # Logging level (INFO for debug, WARN for release) LOGGING_LEVEL = logging.INFO diff --git a/settings.json b/settings.json index 7e7c9029..48a4d4ad 100644 --- a/settings.json +++ b/settings.json @@ -3,7 +3,7 @@ "__comment02__": "SPECIFY revChatGPT API TYPE: 0 USES OPENAI API KEY, 1 USES EMAIL/PASS BUT BETTER AND FREE", "modules": { "chatgpt": true, - "chatgpt_api_type": 0, + "chatgpt_api_type": 1, "dalle": true }, @@ -19,10 +19,10 @@ "__comment05__": "API TYPE 1 USES revChatGPT TO ACCESS SAME MODEL AS OFFICIAL WEBSITE AND ALSO IT'S FREE", "chatgpt_api_1": { "__comment06__": "PROVIDE YOUR OPENAI ACCOUNT DETAILS BELOW TO USE CHATGPT (IF ENABLED)", - "__comment07__": "YOU CAN USE EMAIL/PASSWORD", + "__comment07__": "GO TO https://chat.openai.com/api/auth/session AND PASTE accessToken BELOW", "__comment08__": "OR SESSION_TOKEN (FROM COOKIES ON chat.openai.com AS __Secure-next-auth.session-token)", - "__comment09__": "OR ACCESS_TOKEN (https://chat.openai.com/api/auth/session)", - "__comment10__": "PROVIDE PROXY BASE URL (LEAVE EMPTY FOR DEFAULT VALUE OR TRY https://apps.openai.com/)", + "__comment09__": "OR YOU CAN USE EMAIL/PASSWORD (MAY NOT WORKING)", + "__comment10__": "PROVIDE BASE URL (LEAVE EMPTY FOR DEFAULT VALUE OR TRY https://apps.openai.com/)", "chatgpt_auth": { "email": "", "password": "", @@ -74,4 +74,4 @@ "queue_max": 5, "show_queue_message": true } -} \ No newline at end of file +}