Search Results for

    Show / Hide Table of Contents

    Class AzureOpenAIModel

    OpenAI implementation to communicate with Azure version of OpenAI

    Inheritance
    object
    BaseModel
    OpenAIModel
    AzureOpenAIModel
    Implements
    ILargeLanguageModel
    Inherited Members
    OpenAIModel.DefaultModelConfiguration
    OpenAIModel.OpenAiApiKey
    OpenAIModel.BatchSize
    OpenAIModel.Streaming
    OpenAIModel.ModelExtraArguments
    OpenAIModel.CompletionWithRetry(OpenAIModelConfiguration)
    OpenAIModel.MaxTokensForPrompt(string)
    OpenAIModel.GetNumTokens(string)
    OpenAIModel.LLMType
    OpenAIModel.MaxRequestTokens
    OpenAIModel.ModelNameToContextSize(string)
    OpenAIModel.GenerateInternalAsync(IList<string>, IList<string>)
    OpenAIModel.GetSubPrompts(OpenAIModelConfiguration, IList<string>)
    BaseModel.Logger
    BaseModel.DefaultStop
    BaseModel.UseCache
    BaseModel.GenerateAsync(IList<string>, IList<string>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.LLM.OpenAI
    Assembly: DotnetPrompt.LLM.OpenAI.dll
    Syntax
    public class AzureOpenAIModel : OpenAIModel, ILargeLanguageModel

    Constructors

    | Improve this Doc View Source

    AzureOpenAIModel(IConfiguration, ILogger<AzureOpenAIModel>, IDistributedCache)

    Declaration
    public AzureOpenAIModel(IConfiguration configuration, ILogger<AzureOpenAIModel> logger, IDistributedCache cache)
    Parameters
    Type Name Description
    IConfiguration configuration
    ILogger<AzureOpenAIModel> logger
    IDistributedCache cache
    | Improve this Doc View Source

    AzureOpenAIModel(string, string, string, OpenAIModelConfiguration, ILogger)

    Declaration
    public AzureOpenAIModel(string openAIApiKey, string deploymentId, string account, OpenAIModelConfiguration defaultModelConfiguration, ILogger logger = null)
    Parameters
    Type Name Description
    string openAIApiKey
    string deploymentId
    string account
    OpenAIModelConfiguration defaultModelConfiguration
    ILogger logger

    Properties

    | Improve this Doc View Source

    Account

    Declaration
    public string Account { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    DeploymentId

    Declaration
    public string DeploymentId { get; }
    Property Value
    Type Description
    string

    Methods

    | Improve this Doc View Source

    AsUniqueString()

    Declaration
    protected override string AsUniqueString()
    Returns
    Type Description
    string
    Overrides
    OpenAIModel.AsUniqueString()
    | Improve this Doc View Source

    CompletionsResponseValue(OpenAIModelConfiguration)

    Declaration
    protected override Task<Completions> CompletionsResponseValue(OpenAIModelConfiguration options)
    Parameters
    Type Name Description
    OpenAIModelConfiguration options
    Returns
    Type Description
    Task<Completions>
    Overrides
    OpenAIModel.CompletionsResponseValue(OpenAIModelConfiguration)

    Implements

    ILargeLanguageModel
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AzureOpenAIModel(IConfiguration, ILogger<AzureOpenAIModel>, IDistributedCache)
      • AzureOpenAIModel(string, string, string, OpenAIModelConfiguration, ILogger)
    • Properties
      • Account
      • DeploymentId
    • Methods
      • AsUniqueString()
      • CompletionsResponseValue(OpenAIModelConfiguration)
    • Implements
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt