ChatMessageImageContentItem Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ChatMessageImageContentItem(Uri, Nullable<ChatMessageImageDetailLevel>) |
Initializes a new instance of ChatMessageImageContentItem that refers to an image at another location via URL. |
ChatMessageImageContentItem(BinaryData, String, Nullable<ChatMessageImageDetailLevel>) |
Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format. |
ChatMessageImageContentItem(Stream, String, Nullable<ChatMessageImageDetailLevel>) |
Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format. |
ChatMessageImageContentItem(String, String, Nullable<ChatMessageImageDetailLevel>) |
Initializes a new instance of ChatMessageImageContentItem from a file pointer to an image in a known format. |
ChatMessageImageContentItem(Uri, Nullable<ChatMessageImageDetailLevel>)
Initializes a new instance of ChatMessageImageContentItem that refers to an image at another location via URL.
public ChatMessageImageContentItem (Uri imageUri, Azure.AI.Inference.ChatMessageImageDetailLevel? detailLevel = default);
new Azure.AI.Inference.ChatMessageImageContentItem : Uri * Nullable<Azure.AI.Inference.ChatMessageImageDetailLevel> -> Azure.AI.Inference.ChatMessageImageContentItem
Public Sub New (imageUri As Uri, Optional detailLevel As Nullable(Of ChatMessageImageDetailLevel) = Nothing)
Parameters
- imageUri
- Uri
An internet location, which must be accessible to the model, from which the image may be retrieved.
- detailLevel
- Nullable<ChatMessageImageDetailLevel>
The image detail level the model should use when evaluating the image.
Exceptions
imageUri
is null.
Remarks
This constructor should only be used for file references. To use binary data, streams, or a file directly, please refer to the alternate constructors.
Applies to
ChatMessageImageContentItem(BinaryData, String, Nullable<ChatMessageImageDetailLevel>)
Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format.
public ChatMessageImageContentItem (BinaryData bytes, string mimeType, Azure.AI.Inference.ChatMessageImageDetailLevel? detailLevel = default);
new Azure.AI.Inference.ChatMessageImageContentItem : BinaryData * string * Nullable<Azure.AI.Inference.ChatMessageImageDetailLevel> -> Azure.AI.Inference.ChatMessageImageContentItem
Public Sub New (bytes As BinaryData, mimeType As String, Optional detailLevel As Nullable(Of ChatMessageImageDetailLevel) = Nothing)
Parameters
- bytes
- BinaryData
The image data to provide as content.
- mimeType
- String
The MIME type, e.g. image/png
, matching the format of the image data.
- detailLevel
- Nullable<ChatMessageImageDetailLevel>
The image detail level the model should use when evaluating the image.
Applies to
ChatMessageImageContentItem(Stream, String, Nullable<ChatMessageImageDetailLevel>)
Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format.
public ChatMessageImageContentItem (System.IO.Stream stream, string mimeType, Azure.AI.Inference.ChatMessageImageDetailLevel? detailLevel = default);
new Azure.AI.Inference.ChatMessageImageContentItem : System.IO.Stream * string * Nullable<Azure.AI.Inference.ChatMessageImageDetailLevel> -> Azure.AI.Inference.ChatMessageImageContentItem
Public Sub New (stream As Stream, mimeType As String, Optional detailLevel As Nullable(Of ChatMessageImageDetailLevel) = Nothing)
Parameters
- stream
- Stream
The image data to provide as content.
- mimeType
- String
The MIME type, e.g. image/png
, matching the format of the image data.
- detailLevel
- Nullable<ChatMessageImageDetailLevel>
The image detail level the model should use when evaluating the image.
Applies to
ChatMessageImageContentItem(String, String, Nullable<ChatMessageImageDetailLevel>)
Initializes a new instance of ChatMessageImageContentItem from a file pointer to an image in a known format.
public ChatMessageImageContentItem (string imageFilePath, string mimeType, Azure.AI.Inference.ChatMessageImageDetailLevel? detailLevel = default);
new Azure.AI.Inference.ChatMessageImageContentItem : string * string * Nullable<Azure.AI.Inference.ChatMessageImageDetailLevel> -> Azure.AI.Inference.ChatMessageImageContentItem
Public Sub New (imageFilePath As String, mimeType As String, Optional detailLevel As Nullable(Of ChatMessageImageDetailLevel) = Nothing)
Parameters
- imageFilePath
- String
The path to the image to use.
- mimeType
- String
The MIME type, e.g. image/png
, matching the format of the image data.
- detailLevel
- Nullable<ChatMessageImageDetailLevel>
The image detail level the model should use when evaluating the image.
Applies to
Azure SDK for .NET