mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-07 09:02:55 +00:00
1.0.7 - Code refactoring
This commit is contained in:
parent
d71edd19b3
commit
e196e42910
3 changed files with 3 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ public class Subscriber implements HttpResponse.BodySubscriber<Void> {
|
|||
var data = extractMessageData(message.split("\n"));
|
||||
var choice = data.getChoices().get(0);
|
||||
if ("stop".equals(choice.getFinish_reason())) {
|
||||
// onComplete();
|
||||
onComplete();
|
||||
} else {
|
||||
msgBuilder.append(choice.getText());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue