func sendPrompt() async {
   do {
      let tempResponse = response

      let answer = session.streamResponse(to: prompt)
      for try await partial in answer {
         var newPartial = AttributedString("\(partial.content)")
         newPartial.font = .system(size: 16, weight: .regular)

         var newResponse = tempResponse
         newResponse.append(newPartial)
         response = newResponse
      }
      response.append(AttributedString("\n\n"))
   } catch {
      response.append(AttributedString("Error accessing the model: \(error)\n\n"))
   }
   prompt = ""
}