你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ImageEmbeddingsOptions Class
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.
The configuration information for an image embeddings request.
public class ImageEmbeddingsOptions : System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ImageEmbeddingsOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ImageEmbeddingsOptions>
type ImageEmbeddingsOptions = class
interface IJsonModel<ImageEmbeddingsOptions>
interface IPersistableModel<ImageEmbeddingsOptions>
Public Class ImageEmbeddingsOptions
Implements IJsonModel(Of ImageEmbeddingsOptions), IPersistableModel(Of ImageEmbeddingsOptions)
- Inheritance
-
ImageEmbeddingsOptions
- Implements
Constructors
ImageEmbeddingsOptions(IEnumerable<ImageEmbeddingInput>) |
Initializes a new instance of ImageEmbeddingsOptions. |
Properties
AdditionalProperties |
Additional Properties To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
Dimensions |
Optional. The number of dimensions the resulting output embeddings should have. Passing null causes the model to use its default value. Returns a 422 error if the model doesn't support the value or parameter. |
EncodingFormat |
Optional. The number of dimensions the resulting output embeddings should have. Passing null causes the model to use its default value. Returns a 422 error if the model doesn't support the value or parameter. |
Input |
Input image to embed. To embed multiple inputs in a single request, pass an array. The input must not exceed the max input tokens for the model. |
InputType |
Optional. The type of the input. Returns a 422 error if the model doesn't support the value or parameter. |
Model |
ID of the specific AI model to use, if more than one model is available on the endpoint. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ImageEmbeddingsOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ImageEmbeddingsOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ImageEmbeddingsOptions>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ImageEmbeddingsOptions>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ImageEmbeddingsOptions>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |