Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexPt committed Mar 21, 2023
1 parent 2e9ada5 commit 589b891
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
</dependency>

</dependencies>

<!-- 下面这个标签里的不能改 -->
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/plexpt/chatgpt/ChatGPT.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import com.plexpt.chatgpt.entity.chat.Message;
import com.plexpt.chatgpt.exception.ChatException;

import org.jetbrains.annotations.NotNull;

import java.math.BigDecimal;
import java.net.Proxy;
import java.util.Arrays;
Expand Down Expand Up @@ -52,7 +50,6 @@ public class ChatGPT {
/**
* keys
*/
@NotNull
private String apiKey;

private List<String> apiKeyList;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/plexpt/chatgpt/ChatGPTStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
@AllArgsConstructor
public class ChatGPTStream {

@NonNull
private String apiKey;

private List<String> apiKeyList;

private OkHttpClient okHttpClient;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/plexpt/chatgpt/entity/chat/Message.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.plexpt.chatgpt.entity.chat;

import org.jetbrains.annotations.NotNull;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand All @@ -16,12 +14,10 @@
@NoArgsConstructor
@Builder
public class Message {
@NotNull
/**
* 目前支持三中角色参考官网,进行情景输入:https://platform.openai.com/docs/guides/chat/introduction
*/
private String role;
@NotNull
private String content;

public static Message of(String content) {
Expand Down

0 comments on commit 589b891

Please sign in to comment.