Skip to content

Commit 834af95

Browse files
committed
up 4.0
1 parent bd70b49 commit 834af95

34 files changed

+2133
-1038
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ build/
3131

3232
### VS Code ###
3333
.vscode/
34-
35-
ChatGPT

LICENSE

Lines changed: 674 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 207 additions & 74 deletions
Large diffs are not rendered by default.

config.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

pic/depay.jpg

176 KB
Loading

pom.xml

Lines changed: 93 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55

66
<groupId>com.github.plexpt</groupId>
77
<artifactId>chatgpt</artifactId>
8-
<version>1.2.0</version>
9-
<name>chatgpt-java</name>
10-
<description>chatgpt-java</description>
11-
12-
<url>https://github.com/PlexPt/chatgpt-java</url>
8+
<version>4.0.1</version>
9+
<name>chatgpt</name>
10+
<description>ChatGPT4.0、 ChatGPT Java SDK.</description>
11+
<url>https://chat.plexpt.com</url>
1312

1413
<issueManagement>
1514
<system>Github Issue</system>
@@ -29,12 +28,14 @@
2928
</developer>
3029
</developers>
3130

31+
3232
<scm>
33-
<connection>scm:[email protected]:plexpt/pt-tooki.git</connection>
34-
<developerConnection>scm:[email protected]:plexpt/pt-tooki.git</developerConnection>
35-
<url>[email protected]:plexpt/pt-tooki.git</url>
33+
<connection>scm:[email protected]:plexpt/chatgpt-java.git</connection>
34+
<developerConnection>scm:[email protected]:plexpt/chatgpt-java.git</developerConnection>
35+
<url>[email protected]:plexpt/chatgpt-java.git</url>
3636
</scm>
3737

38+
3839
<properties>
3940
<java.version>1.8</java.version>
4041
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
@@ -45,54 +46,101 @@
4546
<maven.compiler.source>1.8</maven.compiler.source>
4647
<maven.compiler.target>1.8</maven.compiler.target>
4748

48-
<!-- versions -->
4949
<compile.version>8</compile.version>
50+
51+
<retrofit2.version>2.9.0</retrofit2.version>
52+
<slf4j.version>2.0.7</slf4j.version>
53+
<logback.version>1.4.6</logback.version>
5054
</properties>
55+
5156
<dependencies>
5257

5358
<dependency>
5459
<groupId>org.projectlombok</groupId>
5560
<artifactId>lombok</artifactId>
5661
<version>1.18.26</version>
62+
<scope>compile</scope>
5763
<optional>true</optional>
5864
</dependency>
65+
<dependency>
66+
<groupId>org.slf4j</groupId>
67+
<artifactId>slf4j-api</artifactId>
68+
<version>${slf4j.version}</version>
69+
</dependency>
70+
<dependency>
71+
<groupId>ch.qos.logback</groupId>
72+
<artifactId>logback-core</artifactId>
73+
<version>${logback.version}</version>
74+
</dependency>
5975

76+
<!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
6077
<dependency>
61-
<groupId>net.dreamlu</groupId>
62-
<artifactId>mica-http</artifactId>
63-
<version>2.7.6</version>
78+
<groupId>ch.qos.logback</groupId>
79+
<artifactId>logback-classic</artifactId>
80+
<version>${logback.version}</version>
6481
</dependency>
65-
<!-- <dependency>-->
66-
<!-- <groupId>com.google.code.gson</groupId>-->
67-
<!-- <artifactId>gson</artifactId>-->
68-
<!-- <version>2.9.1</version>-->
69-
<!-- </dependency>-->
82+
7083
<dependency>
71-
<groupId>com.alibaba.fastjson2</groupId>
72-
<artifactId>fastjson2</artifactId>
73-
<version>2.0.23</version>
84+
<groupId>org.springframework</groupId>
85+
<artifactId>spring-webmvc</artifactId>
86+
<version>5.3.25</version>
87+
<optional>true</optional>
7488
</dependency>
75-
<!-- <dependency>-->
76-
<!-- <groupId>com.squareup.okhttp3</groupId>-->
77-
<!-- <artifactId>okhttp</artifactId>-->
78-
<!-- <version>3.14.9</version>-->
79-
<!-- </dependency>-->
80-
<!-- <dependency>-->
81-
<!-- <groupId>com.google.guava</groupId>-->
82-
<!-- <artifactId>guava</artifactId>-->
83-
<!-- <version>31.1-jre</version>-->
84-
<!-- </dependency>-->
89+
8590
<dependency>
86-
<groupId>cn.hutool</groupId>
87-
<artifactId>hutool-core</artifactId>
88-
<version>5.8.12</version>
91+
<groupId>com.fasterxml.jackson.core</groupId>
92+
<artifactId>jackson-databind</artifactId>
93+
<version>2.13.3</version>
8994
</dependency>
95+
9096
<dependency>
9197
<groupId>cn.hutool</groupId>
92-
<artifactId>hutool-http</artifactId>
98+
<artifactId>hutool-all</artifactId>
9399
<version>5.8.12</version>
94100
</dependency>
95101

102+
<dependency>
103+
<groupId>com.alibaba</groupId>
104+
<artifactId>fastjson</artifactId>
105+
<version>2.0.23</version>
106+
</dependency>
107+
<dependency>
108+
<groupId>com.squareup.okhttp3</groupId>
109+
<artifactId>okhttp-sse</artifactId>
110+
<version>3.14.9</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>com.squareup.okhttp3</groupId>
114+
<artifactId>logging-interceptor</artifactId>
115+
<version>3.14.9</version>
116+
</dependency>
117+
<dependency>
118+
<groupId>com.squareup.retrofit2</groupId>
119+
<artifactId>retrofit</artifactId>
120+
<version>${retrofit2.version}</version>
121+
</dependency>
122+
<dependency>
123+
<groupId>com.squareup.retrofit2</groupId>
124+
<artifactId>converter-jackson</artifactId>
125+
<version>${retrofit2.version}</version>
126+
</dependency>
127+
<dependency>
128+
<groupId>com.squareup.retrofit2</groupId>
129+
<artifactId>adapter-rxjava2</artifactId>
130+
<version>${retrofit2.version}</version>
131+
</dependency>
132+
<dependency>
133+
<groupId>junit</groupId>
134+
<artifactId>junit</artifactId>
135+
<version>4.13.2</version>
136+
<scope>test</scope>
137+
</dependency>
138+
<dependency>
139+
<groupId>org.jetbrains</groupId>
140+
<artifactId>annotations</artifactId>
141+
<version>RELEASE</version>
142+
<scope>compile</scope>
143+
</dependency>
96144
</dependencies>
97145

98146
<!-- 下面这个标签里的不能改 -->
@@ -122,6 +170,8 @@
122170
<charset>UTF-8</charset>
123171
<encoding>UTF-8</encoding>
124172
<docencoding>UTF-8</docencoding>
173+
<additionalOptions>-Xdoclint:none</additionalOptions>
174+
<failOnError>false</failOnError>
125175
</configuration>
126176
<executions>
127177
<execution>
@@ -172,7 +222,14 @@
172222
<groupId>org.sonatype.plugins</groupId>
173223
<artifactId>nexus-staging-maven-plugin</artifactId>
174224
</plugin>
175-
225+
<plugin>
226+
<groupId>org.apache.maven.plugins</groupId>
227+
<artifactId>maven-surefire-plugin</artifactId>
228+
<version>2.12.4</version>
229+
<configuration>
230+
<skipTests>true</skipTests>
231+
</configuration>
232+
</plugin>
176233
<!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 -->
177234
<plugin>
178235
<groupId>org.apache.maven.plugins</groupId>
@@ -183,7 +240,7 @@
183240
<manifest>
184241
<addClasspath>true</addClasspath>
185242
<classpathPrefix>lib/</classpathPrefix>
186-
<mainClass>com.github.plexpt.chatgpt.ChatGTP</mainClass>
243+
<mainClass>com.github.plexpt.chatgpt.ChatGPT</mainClass>
187244
</manifest>
188245
</archive>
189246
</configuration>

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

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)