1.0.7 - Code refactoring

This commit is contained in:
Carl-Robert Linnupuu 2023-02-21 23:09:32 +00:00
parent d71edd19b3
commit e196e42910
3 changed files with 3 additions and 2 deletions

View file

@ -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());
}