Freigeben über


AzureAIInferenceChatCompletionService Class

Definition

Chat completion service for Azure AI Inference.

public sealed class AzureAIInferenceChatCompletionService : Microsoft.SemanticKernel.ChatCompletion.IChatCompletionService
type AzureAIInferenceChatCompletionService = class
    interface IChatCompletionService
    interface IAIService
Public NotInheritable Class AzureAIInferenceChatCompletionService
Implements IChatCompletionService
Inheritance
AzureAIInferenceChatCompletionService
Implements

Constructors

AzureAIInferenceChatCompletionService(String, ChatCompletionsClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class providing your own ChatCompletionsClient instance.

AzureAIInferenceChatCompletionService(String, String, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

AzureAIInferenceChatCompletionService(String, TokenCredential, Uri, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureAIInferenceChatCompletionService class.

Properties

Attributes

Gets the AI service attributes.

Methods

GetChatMessageContentsAsync(ChatHistory, PromptExecutionSettings, Kernel, CancellationToken)

Get chat multiple chat content choices for the prompt and settings.

GetStreamingChatMessageContentsAsync(ChatHistory, PromptExecutionSettings, Kernel, CancellationToken)

Get streaming chat contents for the chat history provided using the specified settings.

Extension Methods

GetChatMessageContentAsync(IChatCompletionService, ChatHistory, PromptExecutionSettings, Kernel, CancellationToken)

Get a single chat message content for the chat history and settings provided.

GetChatMessageContentAsync(IChatCompletionService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get a single chat message content for the prompt and settings.

GetChatMessageContentsAsync(IChatCompletionService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get chat multiple chat message content choices for the prompt and settings.

GetStreamingChatMessageContentsAsync(IChatCompletionService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get streaming chat message contents for the chat history provided using the specified settings.

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

Applies to