From 650ffbf93961962fec1554ba817c07d9700e2002 Mon Sep 17 00:00:00 2001 From: Anas Fikhi Date: Wed, 8 May 2024 16:33:29 +0100 Subject: [PATCH] [ Edit ] changed deprected/misleading doc comment #174 --- lib/src/instance/openai.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/instance/openai.dart b/lib/src/instance/openai.dart index ba328bd2..b66d6cbd 100644 --- a/lib/src/instance/openai.dart +++ b/lib/src/instance/openai.dart @@ -28,7 +28,7 @@ final class OpenAI extends OpenAIClientBase { /// The API key used to authenticate the requests. static String? _internalApiKey; - /// The singleton instance of [OpenAI], make sure to call the [OpenAI.initialize] method before accessing [instance], otherwise it will throw an [Exception]. + /// The singleton instance of [OpenAI], make sure to set your OpenAI API key via the [OpenAI.apiKey] setter before accessing the [OpenAI.instance], otherwise it will throw an [Exception]. /// A [MissingApiKeyException] will be thrown, if the API key is not set. static OpenAI get instance { if (_internalApiKey == null) {