AspireAzureAIInferenceExtensions
Class static net10.0
Extension methods for adding Azure AI Inference services to an Aspire application.
namespace Microsoft.Extensions.Hosting;
public static class AspireAzureAIInferenceExtensions{ // ...}Methods4
Section titled MethodsAddAzureChatCompletionsClient(IHostApplicationBuilder, string, Action<ChatCompletionsClientSettings>, Action<IAzureClientBuilder<ChatCompletionsClient, AzureAIInferenceClientOptions>>)extension Adds a
Inference.ChatCompletionsClient to the application and configures it with the specified settings. AddChatClient(AspireChatCompletionsClientBuilder, string?)extensionChatClientBuilder Creates a
AI.IChatClient from the Inference.ChatCompletionsClient registered in the service collection. AddKeyedAzureChatCompletionsClient(IHostApplicationBuilder, string, Action<ChatCompletionsClientSettings>, Action<IAzureClientBuilder<ChatCompletionsClient, AzureAIInferenceClientOptions>>)extension Adds a
Inference.ChatCompletionsClient to the application and configures it with the specified settings. AddKeyedChatClient(AspireChatCompletionsClientBuilder, string, string?)extensionChatClientBuilder Creates a
AI.IChatClient from the Inference.ChatCompletionsClient registered in the service collection.