Skip to content

Commit cef334e

Browse files
committed
📝
1 parent 6c93a7b commit cef334e

File tree

2 files changed

+40
-38
lines changed

2 files changed

+40
-38
lines changed

README.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
![stable](https://img.shields.io/badge/stability-stable-brightgreen.svg)
66
[![Maven Central](https://img.shields.io/maven-central/v/com.github.plexpt/chatgpt)](https://maven-badges.herokuapp.com/maven-central/com.github.plexpt/chatgpt)
77

8+
[English Doc](https://github.com/PlexPt/chatgpt-java/blob/main/README_en.md).
89

910

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

12-
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
13+
感谢 [revChatGPT](https://github.com/acheong08/ChatGPT).
1314

14-
Thanks to [revChatGPT](https://github.com/acheong08/ChatGPT).
15-
16-
17-
# Features
15+
# 功能
1816
![image](https://user-images.githubusercontent.com/36258159/205534498-acc59484-c4b4-487d-89a7-d7b884af709b.png)
1917

2018
![image](https://user-images.githubusercontent.com/15922823/206353660-47d99158-a664-4ade-b2f1-e2cc8ac68b74.png)
2119

22-
## USE
20+
21+
可以写代码,写小说,写作文、演讲稿、工作报告、读书笔记、合同等
22+
## 使用
2323

2424
maven
2525
```
@@ -36,32 +36,41 @@ implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
3636
```
3737

3838

39-
then
39+
然后
4040
```
4141
Chatbot chatbot = new Chatbot("sessionToken");
4242
Map<String, Object> chatResponse = chatbot.getChatResponse("hello");
4343
System.out.println(chatResponse.get("message"));
4444
```
45-
### Get sessionToken
45+
### sessionToken获取
4646
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
4747

48+
1. 通过 https://chat.openai.com/chat 注册并登录。
49+
2. 打开浏览器开发者工具,切换到 Application 标签页。
50+
3. 在左侧的 Storage - Cookies 中找到 __Secure-next-auth.session-token 一行并复制其值
4851

49-
### CLI use
50-
1. download from release
51-
2. edit config.json
52-
3. run
5352

53+
### 注册教程
54+
55+
https://juejin.cn/post/7173447848292253704
56+
57+
https://mirror.xyz/boxchen.eth/9O9CSqyKDj4BKUIil7NC1Sa1LJM-3hsPqaeW_QjfFBc
58+
59+
### 也可以控制台直接使用
60+
1. 下载
61+
2. 编辑 config.json 里的sessionToken
62+
3. 运行 run.bat
5463

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

5867
If you have a cool project you want added to the list, open an issue.
5968

6069
# Disclaimers
61-
This is not an official OpenAI product. This is a personal project and is not affiliated with OpenAI in any way. Don't sue me
70+
这不是官方的 OpenAI 产品。这是一个个人项目,与 OpenAI 没有任何关联。
6271

6372
### This is a library and not intended for direct CLI use
64-
The CLI functionality is for demo and testing only. Captcha is not supported (For unclean IP addresses)
73+
CLI 功能仅用于演示和测试。不支持验证码(对于不干净的 IP 地址)
6574

6675
### CLI use
6776
[@rawandahmad698](https://github.com/rawandahmad698) has a much better CLI tool at

README_zh.md renamed to README_en.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@
66
[![Maven Central](https://img.shields.io/maven-central/v/com.github.plexpt/chatgpt)](https://maven-badges.herokuapp.com/maven-central/com.github.plexpt/chatgpt)
77

88

9-
OpenAI ChatGPT 的逆向工程SDK。可扩展用于聊天机器人等。
109

11-
感谢 [revChatGPT](https://github.com/acheong08/ChatGPT).
10+
[简体中文文档](https://github.com/PlexPt/chatgpt-java/blob/main/README_zh.md).
1211

13-
# 功能
12+
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
13+
14+
Thanks to [revChatGPT](https://github.com/acheong08/ChatGPT).
15+
16+
17+
# Features
1418
![image](https://user-images.githubusercontent.com/36258159/205534498-acc59484-c4b4-487d-89a7-d7b884af709b.png)
1519

1620
![image](https://user-images.githubusercontent.com/15922823/206353660-47d99158-a664-4ade-b2f1-e2cc8ac68b74.png)
1721

18-
19-
可以写代码,写小说,写作文、演讲稿、工作报告、读书笔记、合同等
20-
## 使用
22+
## USE
2123

2224
maven
2325
```
@@ -34,41 +36,32 @@ implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
3436
```
3537

3638

37-
然后
39+
then
3840
```
3941
Chatbot chatbot = new Chatbot("sessionToken");
4042
Map<String, Object> chatResponse = chatbot.getChatResponse("hello");
4143
System.out.println(chatResponse.get("message"));
4244
```
43-
### sessionToken获取
45+
### Get sessionToken
4446
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
4547

46-
1. 通过 https://chat.openai.com/chat 注册并登录。
47-
2. 打开浏览器开发者工具,切换到 Application 标签页。
48-
3. 在左侧的 Storage - Cookies 中找到 __Secure-next-auth.session-token 一行并复制其值
4948

49+
### CLI use
50+
1. download from release
51+
2. edit config.json
52+
3. run
5053

51-
### 注册教程
52-
53-
https://juejin.cn/post/7173447848292253704
54-
55-
https://mirror.xyz/boxchen.eth/9O9CSqyKDj4BKUIil7NC1Sa1LJM-3hsPqaeW_QjfFBc
56-
57-
### 也可以控制台直接使用
58-
1. 下载
59-
2. 编辑 config.json 里的sessionToken
60-
3. 运行 run.bat
6154

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

6558
If you have a cool project you want added to the list, open an issue.
6659

6760
# Disclaimers
68-
这不是官方的 OpenAI 产品。这是一个个人项目,与 OpenAI 没有任何关联。
61+
This is not an official OpenAI product. This is a personal project and is not affiliated with OpenAI in any way. Don't sue me
6962

7063
### This is a library and not intended for direct CLI use
71-
CLI 功能仅用于演示和测试。不支持验证码(对于不干净的 IP 地址)
64+
The CLI functionality is for demo and testing only. Captcha is not supported (For unclean IP addresses)
7265

7366
### CLI use
7467
[@rawandahmad698](https://github.com/rawandahmad698) has a much better CLI tool at

0 commit comments

Comments
 (0)