that is the code
import SwiftUI
import Basis
import UIKit
import OpenAI
class ViewController: UIViewController {
@IBOutlet weak var inputTextField: UITextField!
@IBOutlet weak var outputTextView: UITextView!
let openAI = strive! OpenAI(apiKey: "myAPIkeyCodeIwillNotShare")
@IBAction func sendMessage(_ sender: Any) {
let immediate = inputTextField.textual content ?? ""
let completions = strive! openAI.completions(immediate: immediate, maxTokens: 150)
let response = completions.decisions[0].textual content
outputTextView.textual content += "nAI: (response)"
inputTextField.textual content = ""
}
}
it gave me the error above. what ought to i do ?
i attempted every thing i may