OpenAIConnector class

Inheritance
Mixed-in types
Implementers

Constructors

OpenAIConnector({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

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