Skip to content

Commit cba12a2

Browse files
authored
Merge pull request #170 from echofly/patch-1
fix: typo
2 parents c2b96a6 + ee02c2c commit cba12a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/plexpt/chatgpt/listener/AbstractStreamListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public abstract class AbstractStreamListener extends EventSourceListener {
3636
*/
3737
@Setter
3838
@Getter
39-
protected Consumer<String> onComplate = s -> {
39+
protected Consumer<String> onComplete = s -> {
4040

4141
};
4242

@@ -70,7 +70,7 @@ public void onClosed(EventSource eventSource) {
7070
@Override
7171
public void onEvent(EventSource eventSource, String id, String type, String data) {
7272
if (data.equals("[DONE]")) {
73-
onComplate.accept(lastMessage);
73+
onComplete.accept(lastMessage);
7474
return;
7575
}
7676

0 commit comments

Comments
 (0)