Search Results for

    Show / Hide Table of Contents

    Class ChatCompletionExtensions

    Inheritance
    object
    ChatCompletionExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public static class ChatCompletionExtensions

    Methods

    | Edit this page View Source

    AreAllChoicesComplete(ChatCompletionChoiceBase[])

    Declaration
    public static bool AreAllChoicesComplete(this ChatCompletionChoiceBase[] choices)
    Parameters
    Type Name Description
    ChatCompletionChoiceBase[] choices
    Returns
    Type Description
    bool
    | Edit this page View Source

    FirstContent(ChatCompletion)

    Declaration
    public static MessageContent FirstContent(this ChatCompletion c)
    Parameters
    Type Name Description
    ChatCompletion c
    Returns
    Type Description
    MessageContent
    | Edit this page View Source

    FirstContent(ChatCompletionChoice[])

    Declaration
    public static MessageContent FirstContent(this ChatCompletionChoice[] choices)
    Parameters
    Type Name Description
    ChatCompletionChoice[] choices
    Returns
    Type Description
    MessageContent
    | Edit this page View Source

    FirstMessageText(ChatCompletionChoice[])

    Declaration
    public static string FirstMessageText(this ChatCompletionChoice[] choices)
    Parameters
    Type Name Description
    ChatCompletionChoice[] choices
    Returns
    Type Description
    string
    | Edit this page View Source

    ToChatChoice(ChatCompletionChoice)

    Declaration
    public static ChatChoice ToChatChoice(this ChatCompletionChoice choice)
    Parameters
    Type Name Description
    ChatCompletionChoice choice
    Returns
    Type Description
    ChatChoice
    | Edit this page View Source

    ToChatChoices(IEnumerable<ChatCompletionChoice>)

    Declaration
    public static ChatChoice[] ToChatChoices(this IEnumerable<ChatCompletionChoice> choices)
    Parameters
    Type Name Description
    IEnumerable<ChatCompletionChoice> choices
    Returns
    Type Description
    ChatChoice[]
    | Edit this page View Source

    ToResponseMessageArray(ChatCompletionChoice[])

    Declaration
    public static ResponseMessage[] ToResponseMessageArray(this ChatCompletionChoice[] choices)
    Parameters
    Type Name Description
    ChatCompletionChoice[] choices
    Returns
    Type Description
    ResponseMessage[]
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation