Open 3009mt opened 11 months ago
The documentation wasn't updated with the last release.
let key = "sk-...... " var openAI: OpenAISwift = OpenAISwift(config: OpenAISwift.Config.makeDefaultOpenAI(apiKey: key))
Thank you. It works when I'm writing like this: var openAI: OpenAISwift = OpenAISwift(config: OpenAISwift.Config.makeDefaultOpenAI(apiKey: "MY SECRET KEY"))
Please update the README with this crucial information
Hi, I'm trying to develop an app and I have created a secret key by the OpenAI website and used the below code:
import SwiftUI import OpenAISwift
struct MainView: View {
}
struct MainView_Previews: PreviewProvider { static var previews: some View { MainView() } }
but it giving me couple of errors:
I cannot find the solution. Can you help me please?