AspireAzureAIInferenceExtensions
Classstaticnet10.0
Extension methods for adding Azure AI Inference services to an Aspire application.
namespace Microsoft.Extensions.Hosting;
public static class AspireAzureAIInferenceExtensions{ // ...}8 members
Methods8
Section titled Methods Adds a
Inference.ChatCompletionsClient to the application and configures it with the specified settings. Adds a
Inference.EmbeddingsClient to the application and configures it with the specified settings. ChatClientBuilder Creates a
AI.IChatClient from the Inference.ChatCompletionsClient registered in the service collection. EmbeddingGeneratorBuilder<string, Embedding<float>> Creates a
AI.IEmbeddingGenerator`2 from the Inference.EmbeddingsClient registered in the service collection. Adds a
Inference.ChatCompletionsClient to the application and configures it with the specified settings. Adds a
Inference.EmbeddingsClient to the application and configures it with the specified settings. ChatClientBuilder Creates a
AI.IChatClient from the Inference.ChatCompletionsClient registered in the service collection. EmbeddingGeneratorBuilder<string, Embedding<float>> Creates a
AI.IEmbeddingGenerator`2 from the Inference.EmbeddingsClient registered in the service collection.