Show / Hide Table of Contents

Class ChatChoice

Represents a single instance of the chat response.

Inheritance
object
ChatChoice
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class ChatChoice

Properties

FinishReason

Declaration
[Required(ErrorMessage = "FinishReason is required.")]
[JsonProperty(PropertyName = "finishReason")]
public string FinishReason { get; set; }
Property Value
Type Description
string

The reason why the model stopped generating tokens.
Stops if the model hits a natural stop point or a provided stop sequence. Returns the length if the tokens reach the specified maximum number of tokens.

Remarks

Required

Index

Declaration
[Required(ErrorMessage = "Index is required.")]
[JsonProperty(PropertyName = "index")]
public int? Index { get; set; }
Property Value
Type Description
int?

The index of the chat.

Remarks

Required

Logprobs

Declaration
[JsonProperty(PropertyName = "logprobs")]
public Logprobs Logprobs { get; set; }
Property Value
Type Description
Logprobs

Message

Declaration
[Required(ErrorMessage = "Message is required.")]
[JsonProperty(PropertyName = "message")]
public Message Message { get; set; }
Property Value
Type Description
Message
Remarks

Required

In this article
Back to top