Skip to content

Commit 589b891

Browse files
committed
fix
1 parent 2e9ada5 commit 589b891

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,7 @@
135135
<version>4.13.2</version>
136136
<scope>test</scope>
137137
</dependency>
138-
<dependency>
139-
<groupId>org.jetbrains</groupId>
140-
<artifactId>annotations</artifactId>
141-
<version>RELEASE</version>
142-
<scope>compile</scope>
143-
</dependency>
138+
144139
</dependencies>
145140

146141
<!-- 下面这个标签里的不能改 -->

src/main/java/com/plexpt/chatgpt/ChatGPT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import com.plexpt.chatgpt.entity.chat.Message;
1010
import com.plexpt.chatgpt.exception.ChatException;
1111

12-
import org.jetbrains.annotations.NotNull;
13-
1412
import java.math.BigDecimal;
1513
import java.net.Proxy;
1614
import java.util.Arrays;
@@ -52,7 +50,6 @@ public class ChatGPT {
5250
/**
5351
* keys
5452
*/
55-
@NotNull
5653
private String apiKey;
5754

5855
private List<String> apiKeyList;

src/main/java/com/plexpt/chatgpt/ChatGPTStream.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
@AllArgsConstructor
4141
public class ChatGPTStream {
4242

43-
@NonNull
4443
private String apiKey;
45-
4644
private List<String> apiKeyList;
4745

4846
private OkHttpClient okHttpClient;

src/main/java/com/plexpt/chatgpt/entity/chat/Message.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.plexpt.chatgpt.entity.chat;
22

3-
import org.jetbrains.annotations.NotNull;
4-
53
import lombok.AllArgsConstructor;
64
import lombok.Builder;
75
import lombok.Data;
@@ -16,12 +14,10 @@
1614
@NoArgsConstructor
1715
@Builder
1816
public class Message {
19-
@NotNull
2017
/**
2118
* 目前支持三中角色参考官网,进行情景输入:https://platform.openai.com/docs/guides/chat/introduction
2219
*/
2320
private String role;
24-
@NotNull
2521
private String content;
2622

2723
public static Message of(String content) {

0 commit comments

Comments
 (0)