mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Add reset context button to Screen Assistant
This commit is contained in:
parent
5b2f88c4c6
commit
38f45e9386
2 changed files with 24 additions and 0 deletions
|
|
@ -1103,7 +1103,13 @@ class ScreenAssistantManager: NSObject, ObservableObject {
|
|||
}
|
||||
|
||||
func clearChat() {
|
||||
resetConversationContext()
|
||||
}
|
||||
|
||||
func resetConversationContext() {
|
||||
isLoading = false
|
||||
chatMessages.removeAll()
|
||||
clearAllFiles()
|
||||
}
|
||||
|
||||
private func addAssistantMessage(_ content: String) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue