Auf Englisch lesen

Freigeben über


StreamingChatCompletionsUpdate 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.

Represents an incremental update to a streamed Chat Completions response.

C#
public class StreamingChatCompletionsUpdate : System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.StreamingChatCompletionsUpdate>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.StreamingChatCompletionsUpdate>
Inheritance
StreamingChatCompletionsUpdate
Implements

Properties

Choices

An update to the collection of completion choices associated with this completions response. Generally, n choices are generated per provided prompt with a default value of 1. Token limits and other settings may limit the number of choices generated.

ContentUpdate

Gets the content fragment associated with this update.

Created

Gets the first timestamp associated with generation activity for this completions response, represented as seconds since the beginning of the Unix epoch of 00:00 on 1 Jan 1970.

FinishReason

Gets the CompletionsFinishReason associated with this update.

Id

Gets a unique identifier associated with this streamed Chat Completions response.

Model

The model used for the chat completion.

Role

Gets the ChatRole associated with this update.

ToolCallUpdate

An incremental update payload for a tool call that is part of this response.

Usage

Usage information for tokens processed and generated as part of this completions operation.

Methods

Explicit Interface Implementations

Applies to

Produkt Versionen
Azure SDK for .NET Preview