File tree Expand file tree Collapse file tree 4 files changed +1
-15
lines changed
src/main/java/com/plexpt/chatgpt Expand file tree Collapse file tree 4 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 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 <!-- 下面这个标签里的不能改 -->
Original file line number Diff line number Diff line change 99import com .plexpt .chatgpt .entity .chat .Message ;
1010import com .plexpt .chatgpt .exception .ChatException ;
1111
12- import org .jetbrains .annotations .NotNull ;
13-
1412import java .math .BigDecimal ;
1513import java .net .Proxy ;
1614import 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 ;
Original file line number Diff line number Diff line change 4040@ AllArgsConstructor
4141public class ChatGPTStream {
4242
43- @ NonNull
4443 private String apiKey ;
45-
4644 private List <String > apiKeyList ;
4745
4846 private OkHttpClient okHttpClient ;
Original file line number Diff line number Diff line change 11package com .plexpt .chatgpt .entity .chat ;
22
3- import org .jetbrains .annotations .NotNull ;
4-
53import lombok .AllArgsConstructor ;
64import lombok .Builder ;
75import lombok .Data ;
1614@ NoArgsConstructor
1715@ Builder
1816public 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 ) {
You can’t perform that action at this time.
0 commit comments