OpenAIAIGenerator class

Implemented types

Constructors

OpenAIAIGenerator.new({required String baseUrl, required String apiKey, required String model})

Properties

apiKey String
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
model String
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
override
generate(String prompt, {String systemPrompt = '', int maxTokens = 1024, bool withThinking = true, bool jsonResponse = false}) Future<String>
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