Search Results for

    Show / Hide Table of Contents

    Class ChatService

    Inheritance
    object
    CrudServiceBase<GroqCloudClient>
    ChatService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<GroqCloudClient>.client
    CrudServiceBase<GroqCloudClient>.ApiKey
    CrudServiceBase<GroqCloudClient>.GetUrl(params string[])
    CrudServiceBase<GroqCloudClient>.GetChildUrl(string, params string[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.GroqCloud
    Assembly: Glitch9.AIDevKit.Provider.GroqCloud.dll
    Syntax
    public class ChatService : CrudServiceBase<GroqCloudClient>, ICrudService

    Constructors

    | Edit this page View Source

    ChatService(GroqCloudClient)

    Declaration
    public ChatService(GroqCloudClient client)
    Parameters
    Type Name Description
    GroqCloudClient client

    Fields

    | Edit this page View Source

    k_Endpoint

    Declaration
    public const string k_Endpoint = "openai/VERSION/chat/completions"
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateAsync(ChatCompletionRequest, RequestOptions)

    Declaration
    public UniTask<ChatCompletion> CreateAsync(ChatCompletionRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    ChatCompletionRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<ChatCompletion>
    | Edit this page View Source

    StreamAsync(ChatCompletionRequest, RequestOptions)

    Declaration
    public IGenerativeStream<Delta<ITextChunk>, ChatChoice> StreamAsync(ChatCompletionRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    ChatCompletionRequest request
    RequestOptions options
    Returns
    Type Description
    IGenerativeStream<Delta<ITextChunk>, ChatChoice>

    Implements

    ICrudService

    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