Start new conversations from TUI
This commit is contained in:
@@ -31,6 +31,12 @@ const (
|
||||
CyclePrev MessageCycleDirection = -1
|
||||
)
|
||||
|
||||
func (m *AppModel) ClearConversation() {
|
||||
m.Conversation = nil
|
||||
m.Messages = []api.Message{}
|
||||
m.RootMessages = []api.Message{}
|
||||
}
|
||||
|
||||
func (m *AppModel) LoadConversations() (error, []LoadedConversation) {
|
||||
messages, err := m.Ctx.Store.LatestConversationMessages()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user