AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class ChatCompletionService

    Inheritance
    object
    ChatCompletionService
    Namespace: Glitch9.AIDevKit.OpenRouter.Services
    Assembly: .dll
    Syntax
    public class ChatCompletionService : CRUDServiceBase<OpenRouter>

    Constructors

    ChatCompletionService(OpenRouter)

    Declaration
    public ChatCompletionService(OpenRouter client)
    Parameters
    Type Name Description
    OpenRouter client

    Methods

    CreateAsync(ChatCompletionRequest)

    Declaration
    public UniTask<ChatCompletion> CreateAsync(ChatCompletionRequest req)
    Parameters
    Type Name Description
    ChatCompletionRequest req
    Returns
    Type Description
    UniTask<ChatCompletion>

    Stream(ChatCompletionRequest, IChatCompletionStreamHandler)

    Declaration
    public UniTask Stream(ChatCompletionRequest req, IChatCompletionStreamHandler streamHandler)
    Parameters
    Type Name Description
    ChatCompletionRequest req
    IChatCompletionStreamHandler streamHandler
    Returns
    Type Description
    UniTask
    In this article
    Back to top Generated by DocFX