CompletionRepository class
- Inheritance
-
- Object
- CompletionModel
- CompletionRepository
Constructors
-
CompletionRepository({required Dio dio, required List<
Message> messages, GptModel model = GptModel.gpt4oMini})
Properties
- 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
-
messages
→ List<
Map< String, dynamic> > -
no setter
- 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(
) → Future< Message> -
override
-
fetchStream(
{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