ImageEmbeddingsClient.Embed(ImageEmbeddingsOptions, CancellationToken) Method
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.
Return the embedding vectors for given images.
The method makes a REST API call to the /images/embeddings
route on the given endpoint.
public virtual Azure.Response<Azure.AI.Inference.EmbeddingsResult> Embed(Azure.AI.Inference.ImageEmbeddingsOptions imageEmbeddingsOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member Embed : Azure.AI.Inference.ImageEmbeddingsOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Inference.EmbeddingsResult>
override this.Embed : Azure.AI.Inference.ImageEmbeddingsOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Inference.EmbeddingsResult>
Public Overridable Function Embed (imageEmbeddingsOptions As ImageEmbeddingsOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of EmbeddingsResult)
Parameters
- imageEmbeddingsOptions
- ImageEmbeddingsOptions
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
imageEmbeddingsOptions
is null.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET