你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AIInferenceModelFactory.StreamingChatCompletionsUpdate Method

Definition

Initializes a new instance of StreamingChatCompletionsUpdate.

public static Azure.AI.Inference.StreamingChatCompletionsUpdate StreamingChatCompletionsUpdate (string id = default, DateTimeOffset created = default, string model = default, Azure.AI.Inference.CompletionsUsage usage = default, System.Collections.Generic.IEnumerable<Azure.AI.Inference.StreamingChatChoiceUpdate> choices = default);
static member StreamingChatCompletionsUpdate : string * DateTimeOffset * string * Azure.AI.Inference.CompletionsUsage * seq<Azure.AI.Inference.StreamingChatChoiceUpdate> -> Azure.AI.Inference.StreamingChatCompletionsUpdate
Public Shared Function StreamingChatCompletionsUpdate (Optional id As String = Nothing, Optional created As DateTimeOffset = Nothing, Optional model As String = Nothing, Optional usage As CompletionsUsage = Nothing, Optional choices As IEnumerable(Of StreamingChatChoiceUpdate) = Nothing) As StreamingChatCompletionsUpdate

Parameters

id
String

A unique identifier associated with this chat completions response.

created
DateTimeOffset

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.

model
String

The model used for the chat completion.

usage
CompletionsUsage

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

choices
IEnumerable<StreamingChatChoiceUpdate>

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.

Returns

A new StreamingChatCompletionsUpdate instance for mocking.

Applies to