Skip to content

Commit

Permalink
Test API type 1 and update revChatGPT to 3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Mar 12, 2023
1 parent 27488e7 commit 7458961
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ Support the project by buying and listening to my music 馃幍
1. Set `chatgpt_api_type` to `3` in `modules` in `settings.json` file
2. Generate API Key https://platform.openai.com/account/api-keys and paste it into `api_key` in `chatgpt_auth` in `settings.json` file
3. Configure proxy if needed in `proxy` in `settings.json` file
5. For **API type 0** (revChatGPT API V0, Official API, more "stupid" model, uses credits):
1. Set `chatgpt_api_type` to `0` in `modules` in `settings.json` file
2. Generate API Key https://platform.openai.com/account/api-keys and paste it into `api_key` in `chatgpt_auth` in `settings.json` file
3. Configure proxy if needed in `proxy` in `settings.json` file
6. For **API type 1** (revChatGPT API V1, free, uses same model as official website):
5. For **API type 1** (revChatGPT API V1, free, uses same model as official website):
1. Set `chatgpt_api_type` to `1` in `modules` in `settings.json` file
2. Make sure you have access to https://chat.openai.com/
3. Open https://chat.openai.com/api/auth/session
4. Copy value of `accessToken` into `access_token` in `chatgpt_auth` in `chatgpt_api_1` in `settings.json` file
5. Configure proxy if needed in `proxy` in `settings.json` file
6. For **API type 0** (revChatGPT API V0, Official API, more "stupid" model, uses credits):
1. Set `chatgpt_api_type` to `0` in `modules` in `settings.json` file
2. Generate API Key https://platform.openai.com/account/api-keys and paste it into `api_key` in `chatgpt_auth` in `settings.json` file
3. Configure proxy if needed in `proxy` in `settings.json` file
7. For DALL-E, generate API Key https://platform.openai.com/account/api-keys
8. Type Generated OpenAI API Key into `open_ai_api_key` in `dalle` in `settings.json` file
9. Create bot at https://t.me/BotFather
Expand All @@ -74,7 +74,7 @@ Example `settings.json`:
{
"modules": {
"chatgpt": true,
"chatgpt_api_type": 3,
"chatgpt_api_type": 1,
"dalle": true
},

Expand All @@ -86,7 +86,7 @@ Example `settings.json`:
"email": "",
"password": "",
"session_token": "",
"access_token": "",
"access_token": "XXxXxXx........XxxXXx",

"base_url": ""
},
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import BotHandler
from JSONReaderWriter import load_json

TELEGRAMUS_VERSION = 'beta_2.0.0'
TELEGRAMUS_VERSION = 'beta_2.0.1'

# Logging level (INFO for debug, WARN for release)
LOGGING_LEVEL = logging.INFO
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
psutil>=5.9.1
telegram~=0.0.1
python-telegram-bot~=20.1
revChatGPT==3.3.1
revChatGPT==3.3.4
openai>=0.26.4
tiktoken>=0.2.0
OpenAIAuth>=0.3.2
2 changes: 1 addition & 1 deletion settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"__comment01__": "SPECIFY WHAT MODULES WILL BE INCLUDED IN TELEGRAM BOT AND revChatGPT API TYPE",
"__comment02__": "0 - OFFICIAL CHATGPT API. MORE STUPID MODEL. AUTHORIZATION VIA OPENAI API KEY",
"__comment03__": "1 - (NOT TESTED) SAME AS OFFICIAL WEBSITE. FREE BUT LIMITED NUMBER OF REQUESTS. AUTHORIZATION VIA ACCESS_TOKEN, SESSION_TOKEN (NOT TESTED) OR EMAIL/PASS (NOT TESTED)",
"__comment03__": "1 - SAME AS OFFICIAL WEBSITE. FREE BUT LIMITED NUMBER OF REQUESTS. AUTHORIZATION VIA ACCESS_TOKEN, SESSION_TOKEN (NOT TESTED) OR EMAIL/PASS (NOT TESTED)",
"__comment04__": "2 - (MAY NOT WORK) FREE API FOR CHATGPT. AUTHORIZATION VIA OPENAI API KEY",
"__comment05__": "3 - (RECOMMENDED) OFFICIAL CHATGPT API. AUTHORIZATION VIA OPENAI API KEY",
"modules": {
Expand Down

0 comments on commit 7458961

Please sign in to comment.