Skip to content

Commit

Permalink
chatgpt 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexPt committed Dec 8, 2022
1 parent 85d7758 commit 627cdbb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


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


Expand All @@ -22,13 +22,13 @@ maven
<dependency>
<groupId>com.github.plexpt</groupId>
<artifactId>chatgpt</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
```

gradle
```
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
```


Expand Down
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ maven
<dependency>
<groupId>com.github.plexpt</groupId>
<artifactId>chatgpt</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
```

gradle
```
implementation group: 'com.github.plexpt', name: 'toolkit', version: '2022.7.0'
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
```


Expand Down
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.plexpt</groupId>
<artifactId>chatgpt</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<name>chatgpt-java</name>
<description>chatgpt-java</description>

Expand Down Expand Up @@ -173,10 +173,13 @@
</plugins>
</pluginManagement>
<plugins>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>


</plugins>
</build>

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/github/plexpt/chatgpt/Chatbot.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@Data
public class Chatbot {
private Map<String, String> config;
private Map<String, String> config = new HashMap<>();
private String conversationId;
private String parentId;
private Map<String, String> headers;
Expand All @@ -40,7 +40,6 @@ public Chatbot(Map<String, String> config, String conversationId) {
}

public Chatbot(String sessionToken) {
Map<String, String> config = new HashMap<>();
config.put("session_token", sessionToken);
this.parentId = UUID.randomUUID().toString();
refreshSession();
Expand Down

0 comments on commit 627cdbb

Please sign in to comment.