Skip to content

Commit

Permalink
Merge pull request #40 from kghandour/20-image-+-text-support
Browse files Browse the repository at this point in the history
Fix clear chat bug
  • Loading branch information
kghandour authored Mar 18, 2024
2 parents c12e17d + f5dae82 commit 9d1c5e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ollama Swift/Controllers/ChatController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ChatController: ObservableObject{
@Published var photoPath: String = ""
@Published var photoBase64: String = ""
@Published var photoImage: Image?
@Published var showFileChooser: Bool = false
let ollamaController = OllamaController()


Expand Down Expand Up @@ -64,8 +63,10 @@ class ChatController: ObservableObject{
func resetChat() {
self.sentPrompt = []
self.receivedResponse = []
self.sentImages = []
self.chatHistory = ChatModel(model: "", messages: [])
self.prompt = PromptModel(prompt: "", model: "", system: "")
self.prompt.prompt = ""
self.prompt.system = ""
self.photoPath = ""
self.photoBase64 = ""
self.photoImage = nil
Expand Down

0 comments on commit 9d1c5e1

Please sign in to comment.