CompletionRepository class
- Inheritance
-
- Object
- CompletionModel
- CompletionRepository
Constructors
- CompletionRepository.new({required Dio dio, GptModel model = GptModel.gpt4oMini})
Properties
- addsPreviousMessagesToThread → bool
-
no setteroverride
- addsResponseAutomatically → bool
-
Indicates the class adds the response message to the current thread.
no setteroverride
- dio → Dio
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → GptModel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature ↔ double
-
getter/setter pair
- url → String
-
final
Methods
-
fetch(
{List< Message> ? previousMessages}) → Future<Message> -
override
-
fetchStream(
{List< Message> ? previousMessages, int retries = 2, FutureOr<void> onError(CompletionException error, int retriesRemaning)?, void onJsonComplete(Map<String, dynamic> chunk)?}) → Stream<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
Static Properties
- amountToSend ↔ int
-
Amount of messages to send.
getter/setter pair