StreamCompletionResponse class
streamMessageEnd will be set to true if the response is Stream and the data is "DONE
"
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
StreamCompletionResponse({String? id, String? object, int? created, String? model, List<
StreamChoiceResponse> ? choices, bool streamMessageEnd = false}) - StreamCompletionResponse.end()
-
factory
-
StreamCompletionResponse.fromJson(Map<
String, dynamic> data) -
factory
Properties
-
choices
→ List<
StreamChoiceResponse> ? -
final
- created → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- model → String?
-
final
- object → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamMessageEnd → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited