Skip to content

Commit 627cdbb

Browse files
committed
chatgpt 1.0.1
1 parent 85d7758 commit 627cdbb

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
# ChatGPT Java Api
4-
[![PyPi](https://img.shields.io/pypi/v/revChatGPT.svg)](https://pypi.python.org/pypi/revChatGPT)
4+
[![PyPi](https://img.shields.io/maven/v/chatgpt.svg)](https://pypi.python.org/pypi/revChatGPT)
55
[![PyPi](https://img.shields.io/pypi/dm/revChatGPT.svg)](https://pypi.python.org/pypi/revChatGPT)
66

77

@@ -22,13 +22,13 @@ maven
2222
<dependency>
2323
<groupId>com.github.plexpt</groupId>
2424
<artifactId>chatgpt</artifactId>
25-
<version>1.0.0</version>
25+
<version>1.0.1</version>
2626
</dependency>
2727
```
2828

2929
gradle
3030
```
31-
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
31+
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
3232
```
3333

3434

README_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ maven
1919
<dependency>
2020
<groupId>com.github.plexpt</groupId>
2121
<artifactId>chatgpt</artifactId>
22-
<version>1.0.0</version>
22+
<version>1.0.1</version>
2323
</dependency>
2424
```
2525

2626
gradle
2727
```
28-
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
28+
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
2929
```
3030

3131

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.plexpt</groupId>
77
<artifactId>chatgpt</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
<name>chatgpt-java</name>
1010
<description>chatgpt-java</description>
1111

@@ -173,10 +173,13 @@
173173
</plugins>
174174
</pluginManagement>
175175
<plugins>
176+
176177
<plugin>
177178
<groupId>org.sonatype.plugins</groupId>
178179
<artifactId>nexus-staging-maven-plugin</artifactId>
179180
</plugin>
181+
182+
180183
</plugins>
181184
</build>
182185

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@Data
2020
public class Chatbot {
21-
private Map<String, String> config;
21+
private Map<String, String> config = new HashMap<>();
2222
private String conversationId;
2323
private String parentId;
2424
private Map<String, String> headers;
@@ -40,7 +40,6 @@ public Chatbot(Map<String, String> config, String conversationId) {
4040
}
4141

4242
public Chatbot(String sessionToken) {
43-
Map<String, String> config = new HashMap<>();
4443
config.put("session_token", sessionToken);
4544
this.parentId = UUID.randomUUID().toString();
4645
refreshSession();

0 commit comments

Comments
 (0)