You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/src/instance/openai.dart
+1-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ final class OpenAI extends OpenAIClientBase {
28
28
/// The API key used to authenticate the requests.
29
29
staticString? _internalApiKey;
30
30
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].
32
32
/// A [MissingApiKeyException] will be thrown, if the API key is not set.
0 commit comments