OpenAI class

Properties

beta OpenAIBeta
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

apiKey String?
getter/setter pair
instance OpenAI
The singleton instance of OpenAI, make sure to call the OpenAI.initialize method before accessing instance, otherwise it will throw an Exception. A MissingApiKeyException will be thrown, if the API key is not set.
no setter