Skip to content

Commit

Permalink
[ Edit ] changed deprected/misleading doc comment #174
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed May 8, 2024
1 parent 7cd58e5 commit 650ffbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/instance/openai.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 650ffbf

Please sign in to comment.