AzureOpenAIClientOptions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AzureOpenAIClientOptions() |
Initializes a new instance of AzureOpenAIClientOptions. |
AzureOpenAIClientOptions(AzureOpenAIClientOptions+ServiceVersion) |
Initializes a new instance of AzureOpenAIClientOptions. |
AzureOpenAIClientOptions()
- Source:
- AzureOpenAIClientOptions.cs
Initializes a new instance of AzureOpenAIClientOptions.
public AzureOpenAIClientOptions ();
Public Sub New ()
Remarks
When using this constructor, the best matching service API version will automatically be selected. This is typically the latest service API version available when the library is published. To specify a service API version manually, use the AzureOpenAIClientOptions(AzureOpenAIClientOptions+ServiceVersion) overload, instead.
Applies to
AzureOpenAIClientOptions(AzureOpenAIClientOptions+ServiceVersion)
- Source:
- AzureOpenAIClientOptions.cs
- Source:
- AzureOpenAIClientOptions.cs
Initializes a new instance of AzureOpenAIClientOptions.
public AzureOpenAIClientOptions (Azure.AI.OpenAI.AzureOpenAIClientOptions.ServiceVersion version = Azure.AI.OpenAI.AzureOpenAIClientOptions+ServiceVersion.V2024_10_21);
public AzureOpenAIClientOptions (Azure.AI.OpenAI.AzureOpenAIClientOptions.ServiceVersion version);
new Azure.AI.OpenAI.AzureOpenAIClientOptions : Azure.AI.OpenAI.AzureOpenAIClientOptions.ServiceVersion -> Azure.AI.OpenAI.AzureOpenAIClientOptions
Public Sub New (Optional version As AzureOpenAIClientOptions.ServiceVersion = Azure.AI.OpenAI.AzureOpenAIClientOptions+ServiceVersion.V2024_10_21)
Public Sub New (version As AzureOpenAIClientOptions.ServiceVersion)
Parameters
The service API version to use with the client.
Exceptions
The provided service API version is not supported.
Remarks
This overload will attempt to use a specific service API version label that may differ from the preferred default. Please note that operation behavior may differ when using non-default service API versions.