Class AzureOpenAIModel
OpenAI implementation to communicate with Azure version of OpenAI
Implements
Inherited Members
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 SourceAzureOpenAIModel(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 |
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 SourceAccount
Declaration
public string Account { get; }
Property Value
Type | Description |
---|---|
string |
DeploymentId
Declaration
public string DeploymentId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Improve this Doc View SourceAsUniqueString()
Declaration
protected override string AsUniqueString()
Returns
Type | Description |
---|---|
string |
Overrides
| Improve this Doc View SourceCompletionsResponseValue(OpenAIModelConfiguration)
Declaration
protected override Task<Completions> CompletionsResponseValue(OpenAIModelConfiguration options)
Parameters
Type | Name | Description |
---|---|---|
OpenAIModelConfiguration | options |
Returns
Type | Description |
---|---|
Task<Completions> |