Skip to content

Commit f1338aa

Browse files
committed
📝
1 parent 25dbbff commit f1338aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.0.1'
4444
Map<String, Object> chatResponse = chatbot.getChatResponse("hello");
4545
System.out.println(chatResponse.get("message"));
4646
```
47+
注意:一个Chatbot实例为一个Session,会持有对话上下文,可以回复:继续 让机器人接着说。如果需要对话互相隔离,new 多个Chatbot实例即可。
48+
4749
### sessionToken获取
4850
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
4951

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public static void main(String[] args) {
5555
});
5656

5757
Chatbot chatbot = new Chatbot(params, null);
58-
5958
String prompt;
6059
while (true) {
6160
prompt = getInput("\nYou:\n");

0 commit comments

Comments
 (0)