menu
openai_flutter package
documentation
http/ai_config.dart
AIConfigBuilder class
AIConfigBuilder class
dark_mode
light_mode
AIConfigBuilder
class
Properties
completionsUrl
→
String
no setter
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
headers
(
)
→
Map
<
String
,
String
>
This is used to build the headers for all the requests, it will return a
Map<String, String>
. if an organization id is set, it will be added to the headers as well. If in anyhow the API key is not set, it will throw an
AssertionError
.
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
instance
→
AIConfigBuilder
no setter
Static Methods
init
(
String
apiKey
, {
String
?
organization
,
String
completionsUrl
=
'https://api.openai.com/v1/completions'
})
→ void
openai_flutter package
documentation
http/ai_config
AIConfigBuilder class
ai_config library