Skip to content

Commit b641435

Browse files
committed
🎉
1 parent 3e5e95e commit b641435

File tree

3 files changed

+56
-25
lines changed

3 files changed

+56
-25
lines changed

README.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,36 @@
1010
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
1111
Thanks to [revChatGPT](https://github.com/acheong08/ChatGPT).
1212

13-
# Instructions
14-
Instructions have been moved to the [Wiki](https://github.com/acheong08/ChatGPT/wiki).
15-
16-
If you were using this prior to version 0.0.31, please update immediately. `pip3 install revChatGPT --upgrade`. Fixes has been done to avoid bot blocking
1713

1814
# Features
1915
![image](https://user-images.githubusercontent.com/36258159/205534498-acc59484-c4b4-487d-89a7-d7b884af709b.png)
20-
- No moderation
21-
- Programmable.
2216

23-
# Urgent help needed
24-
- Writing tests
25-
- Decrecate bs4 in favor of pure requests
26-
- **Error handling**
17+
## USE
18+
19+
maven
20+
```
21+
<dependency>
22+
<groupId>com.github.plexpt</groupId>
23+
<artifactId>chatgpt</artifactId>
24+
<version>1.0.0</version>
25+
</dependency>
26+
```
27+
28+
gradle
29+
```
30+
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
31+
```
32+
33+
34+
then
35+
```
36+
Chatbot chatbot = new Chatbot("sessionToken");
37+
Map<String, Object> chatResponse = chatbot.getChatResponse("hello");
38+
System.out.println(chatResponse.get("message"));
39+
```
40+
### Get sessionToken
41+
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
42+
2743

2844
# Awesome ChatGPT
2945
[My list](https://github.com/stars/acheong08/lists/awesome-chatgpt)

README_zh.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,39 @@
55
[![PyPi](https://img.shields.io/pypi/dm/revChatGPT.svg)](https://pypi.python.org/pypi/revChatGPT)
66

77

8-
[简体中文](https://github.com/PlexPt/chatgpt-java/blob/main/LICENSE).
8+
OpenAI ChatGPT 的逆向工程SDK。可扩展用于聊天机器人等。
99

10-
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
11-
Thanks to [revChatGPT](https://github.com/acheong08/ChatGPT).
10+
感谢 [revChatGPT](https://github.com/acheong08/ChatGPT).
1211

13-
# Instructions
14-
Instructions have been moved to the [Wiki](https://github.com/acheong08/ChatGPT/wiki).
12+
# 功能
13+
![image](https://user-images.githubusercontent.com/36258159/205534498-acc59484-c4b4-487d-89a7-d7b884af709b.png)
1514

16-
If you were using this prior to version 0.0.31, please update immediately. `pip3 install revChatGPT --upgrade`. Fixes has been done to avoid bot blocking
15+
## 使用
1716

18-
# Features
19-
![image](https://user-images.githubusercontent.com/36258159/205534498-acc59484-c4b4-487d-89a7-d7b884af709b.png)
20-
- No moderation
21-
- Programmable.
17+
maven
18+
```
19+
<dependency>
20+
<groupId>com.github.plexpt</groupId>
21+
<artifactId>chatgpt</artifactId>
22+
<version>1.0.0</version>
23+
</dependency>
24+
```
25+
26+
gradle
27+
```
28+
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
29+
```
30+
31+
32+
然后
33+
```
34+
Chatbot chatbot = new Chatbot("sessionToken");
35+
Map<String, Object> chatResponse = chatbot.getChatResponse("hello");
36+
System.out.println(chatResponse.get("message"));
37+
```
38+
### sessionToken获取
39+
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
2240

23-
# Urgent help needed
24-
- Writing tests
25-
- Decrecate bs4 in favor of pure requests
26-
- **Error handling**
2741

2842
# Awesome ChatGPT
2943
[My list](https://github.com/stars/acheong08/lists/awesome-chatgpt)
@@ -43,4 +57,4 @@ The CLI functionality is for demo and testing only. Captcha is not supported (Fo
4357

4458
# Star History
4559

46-
[![Star History Chart](https://api.star-history.com/svg?repos=acheong08/ChatGPT&type=Date)](https://star-history.com/#acheong08/ChatGPT&Date)
60+
[![Star History Chart](https://api.star-history.com/svg?repos=PlexPt/chatgpt-java&type=Date)](https://star-history.com/#PlexPt/chatgpt-java&Date)

src/main/java/com/github/plexpt/chatgpt/ChatGTP.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static void main(String[] args) {
5757
});
5858

5959
Chatbot chatbot = new Chatbot(params, null);
60+
6061
String prompt;
6162
while (true) {
6263
prompt = getInput("\nYou:\n");

0 commit comments

Comments
 (0)