func sendPrompt() async {
   do {
      let count = try await model.tokenCount(for: prompt)
      if count < 50 {
         let answer = try await session.respond(to: prompt)
         var newResponse = AttributedString("\(answer.content)\n\n")
         newResponse.font = .system(size: 16, weight: .regular)
         response.append(newResponse)
      } else {
         var newResponse = AttributedString("Type a shorter question\n\n")
         newResponse.font = .system(size: 16, weight: .regular)
         response.append(newResponse)
      }
   } catch {
      response.append(AttributedString("Error accessing the model: \(error)\n\n"))
   }
   prompt = ""
}