OpenAIChatCompletionChoiceMessageContentItemModel class
This represents the content item of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used in the OpenAIChat
methods.
Constructors
-
OpenAIChatCompletionChoiceMessageContentItemModel.fromMap(Map<
String, dynamic> asMap) -
This is used to convert a Map<String, dynamic> object to a OpenAIChatCompletionChoiceMessageContentItemModel object.
factory
- OpenAIChatCompletionChoiceMessageContentItemModel.imageUrl(String imageUrl)
-
Represents a image content item factory, which is used to create a image OpenAIChatCompletionChoiceMessageContentItemModel.
factory
- OpenAIChatCompletionChoiceMessageContentItemModel.text(String text)
-
Represents a text content item factory, which is used to create a text OpenAIChatCompletionChoiceMessageContentItemModel.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- imageUrl → String?
-
The image url content of the item.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
The text content of the item.
final
- type → String
-
The type of the content item.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - This method used to convert the OpenAIChatCompletionChoiceMessageContentItemModel to a Map<String, dynamic> object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant OpenAIChatCompletionChoiceMessageContentItemModel other) → bool -
The equality operator.
override