Private
Public Access
1
0

Fixed message loading

Root messages weren't being loaded since the refactor, and there was
dead code
This commit is contained in:
2024-09-21 02:32:54 +00:00
parent 463ca9ef40
commit a488ec4fd8
4 changed files with 22 additions and 16 deletions

View File

@@ -16,11 +16,6 @@ import (
// custom tea.Msg types
type (
// sent when a conversation is (re)loaded
msgConversationLoaded struct {
conversation *api.Conversation
rootMessages []api.Message
}
// sent when a new conversation title generated
msgConversationTitleGenerated string
// sent when the conversation has been persisted, triggers a reload of contents
@@ -30,7 +25,10 @@ type (
messages []api.Message
}
// sent when a conversation's messages are laoded
msgMessagesLoaded []api.Message
msgConversationMessagesLoaded struct {
messages []api.Message
rootMessages []api.Message
}
// a special case of common.MsgError that stops the response waiting animation
msgChatResponseError error
// sent on each chunk received from LLM