Search Results for

    Show / Hide Table of Contents

    Class ChatCompletionBase<TChoice>

    Inheritance
    object
    OpenAIObject
    ChatCompletionBase<TChoice>
    ChatCompletion
    ChatCompletionEvent
    OpenRouterCompletion
    Inherited Members
    OpenAIObject.Id
    OpenAIObject.Object
    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 ChatCompletionBase<TChoice> : OpenAIObject where TChoice : ChatCompletionChoiceBase
    Type Parameters
    Name Description
    TChoice

    Properties

    | Edit this page View Source

    Choices

    A list of chat completion choices. Can be more than one if n is greater than 1.

    If this is 'ChatCompletionChunk' which is a streamed response, This can also be empty for the last chunk if you set stream_options: {"include_usage": true}.

    Declaration
    [JsonProperty("choices")]
    public TChoice[] Choices { get; set; }
    Property Value
    Type Description
    TChoice[]
    | Edit this page View Source

    CreatedAt

    The Unix timestamp (in seconds) of when this object was created.

    Declaration
    [JsonProperty("created_at")]
    public UnixTime CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    Metadata

    Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.

    Declaration
    [JsonProperty("metadata")]
    public ServerDictionary Metadata { get; set; }
    Property Value
    Type Description
    ServerDictionary
    | Edit this page View Source

    Model

    ID of the model.

    Declaration
    [JsonProperty("model")]
    public string Model { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    SystemFingerprint

    OpenAI: Represents the backend configuration that the model runs with.
    Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

    xAI: Used to indicate xAI system configuration changes.

    Declaration
    [JsonProperty("system_fingerprint")]
    public string SystemFingerprint { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Usage

    How much tokens were used for the request.

    Declaration
    [JsonProperty("usage")]
    public Usage Usage { get; set; }
    Property Value
    Type Description
    Usage

    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