Search Results for

    Show / Hide Table of Contents

    Class OpenAIService

    Inheritance
    object
    CrudServiceBase<MicrosoftAzureClient>
    OpenAIService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<MicrosoftAzureClient>.client
    CrudServiceBase<MicrosoftAzureClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Azure.Services
    Assembly: Glitch9.AIDevKit.Provider.Microsoft.Azure.dll
    Syntax
    public sealed class OpenAIService : CrudServiceBase<MicrosoftAzureClient>, ICrudService

    Constructors

    | Edit this page View Source

    OpenAIService(MicrosoftAzureClient)

    Declaration
    public OpenAIService(MicrosoftAzureClient client)
    Parameters
    Type Name Description
    MicrosoftAzureClient client

    Methods

    | Edit this page View Source

    GetChatCompletionAsync(ChatCompletionRequest, RequestOptions)

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

    StreamChatCompletionAsync(ChatCompletionRequest, RequestOptions)

    Declaration
    public IGenerativeStream<Delta<ITextChunk>, ChatChoice> StreamChatCompletionAsync(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