AIInferenceModelFactory.ChatChoice Method
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.
Initializes a new instance of ChatChoice.
public static Azure.AI.Inference.ChatChoice ChatChoice (int index = 0, Azure.AI.Inference.CompletionsFinishReason? finishReason = default, Azure.AI.Inference.ChatResponseMessage message = default);
static member ChatChoice : int * Nullable<Azure.AI.Inference.CompletionsFinishReason> * Azure.AI.Inference.ChatResponseMessage -> Azure.AI.Inference.ChatChoice
Public Shared Function ChatChoice (Optional index As Integer = 0, Optional finishReason As Nullable(Of CompletionsFinishReason) = Nothing, Optional message As ChatResponseMessage = Nothing) As ChatChoice
Parameters
- index
- Int32
The ordered index associated with this chat completions choice.
- finishReason
- Nullable<CompletionsFinishReason>
The reason that this chat completions choice completed its generated.
- message
- ChatResponseMessage
The chat message for a given chat completions prompt.
Returns
A new ChatChoice instance for mocking.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.