OpenAIConnector class

Inheritance
Mixed-in types
Implementers

Constructors

OpenAIConnector.new({required String apiKey, String baseUrl = "https://api.openai.com/v1"})
const

Properties

apiKey String
finalinherited
baseUrl String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedModels List<ChatModel>
no setteroverride

Methods

call(ChatRequest request) Future<ChatResult>
override
connect(ChatModel model) ConnectedChatModel
inherited
embed({required String model, required String text, int? dimensions}) Future<List<double>>
override
embedMultiple({required String model, required List<String> texts, int? dimensions}) Future<List<List<double>>>
override
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