OpenAIConnector class

Inheritance

Constructors

OpenAIConnector({required String apiKey})

Properties

apiKey String
final
gpt3_5Turbo Gpt35turbo
no setter
gpt4 Gpt4
no setter
gpt4_1 Gpt4_1
no setter
gpt4o Gpt4o
no setter
gptImage1 Gptimage1
no setter
gptoss120b Gptoss120b
no setter
gptoss20b Gptoss20b
no setter
hashCode int
The hash code for this object.
no setterinherited
name Models
Name of the AI model connector.
no setteroverride
o3 O3
no setter
o3MIN O3mini
no setter
o3Pro O3Pro
no setter
o4mini O4mini
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textembeddingada002 Textembeddingada002
no setter

Methods

getModelInfo(String modelName) Future<String>
getUsage() Future<String>
Get usage statistics
listModels() Future<String>
List models
moderateContent(String input) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAudiotoText(String audioPath, {String? prompt, Map<String, dynamic>? extraOptions}) Future<String>
toString() String
A string representation of this object.
inherited
translateAudio(String audioPath, {Map<String, dynamic>? extraOptions}) Future<String>

Operators

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