Skip to content

Commit 650ffbf

Browse files
committed
[ Edit ] changed deprected/misleading doc comment #174
1 parent 7cd58e5 commit 650ffbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/instance/openai.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class OpenAI extends OpenAIClientBase {
2828
/// The API key used to authenticate the requests.
2929
static String? _internalApiKey;
3030

31-
/// The singleton instance of [OpenAI], make sure to call the [OpenAI.initialize] method before accessing [instance], otherwise it will throw an [Exception].
31+
/// 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].
3232
/// A [MissingApiKeyException] will be thrown, if the API key is not set.
3333
static OpenAI get instance {
3434
if (_internalApiKey == null) {

0 commit comments

Comments
 (0)