diff --git a/README.md b/README.md index e15341a..013a88a 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,10 @@ Import the framework in your project: [Create an OpenAI API key](https://platform.openai.com/account/api-keys) and add it to your configuration: -`let openAI = OpenAISwift(authToken: "TOKEN")` +``` +let key = "sk-...... " +var openAI: OpenAISwift = OpenAISwift(config: OpenAISwift.Config.makeDefaultOpenAI(apiKey: key)) +``` This framework supports Swift concurrency; each example below has both an async/await and completion handler variant.