Search Results for

    Show / Hide Table of Contents

    Class ChatCompletionChoiceBase

    Inheritance
    object
    ChatCompletionChoiceBase
    ChatCompletionChoice
    ChatCompletionChoiceDelta
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public abstract class ChatCompletionChoiceBase

    Properties

    | Edit this page View Source

    FinishReason

    The reason the model stopped generating tokens. This will be stopped if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, or function_call if the model called a Function.

    Declaration
    [JsonProperty("finish_reason")]
    public FinishReason? FinishReason { get; set; }
    Property Value
    Type Description
    FinishReason?
    | Edit this page View Source

    Index

    The index of the choice in the list of choices.

    Declaration
    [JsonProperty("index")]
    public int Index { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Logprobs

    Log probability information for the choice.

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

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation