Improve response regeneration (#51)

This commit is contained in:
Carl-Robert Linnupuu 2023-03-22 10:26:34 +00:00
parent 525c316739
commit a22007439d
4 changed files with 29 additions and 24 deletions

View file

@ -159,4 +159,8 @@ public class ConversationsState implements PersistentStateComponent<Conversation
nextConversation.ifPresent(this::setCurrentConversation);
}
public Conversation getOrStartNew() {
return currentConversation == null ? startConversation() : currentConversation;
}
}