AIConfigBuilder class

Properties

completionsUrl String
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

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