Package com.github.copilot.sdk.json
Class AzureOptions
java.lang.Object
com.github.copilot.sdk.json.AzureOptions
Azure OpenAI-specific configuration options.
When using a BYOK (Bring Your Own Key) setup with Azure OpenAI, this class allows you to specify Azure-specific settings such as the API version to use.
Example Usage
var provider = new ProviderConfig().setType("azure-openai").setHost("your-resource.openai.azure.com")
.setApiKey("your-api-key").setAzure(new AzureOptions().setApiVersion("2024-02-01"));
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the Azure OpenAI API version.setApiVersion(String apiVersion) Sets the Azure OpenAI API version to use.
-
Constructor Details
-
AzureOptions
public AzureOptions()
-
-
Method Details
-
getApiVersion
Gets the Azure OpenAI API version.- Returns:
- the API version string
-
setApiVersion
Sets the Azure OpenAI API version to use.Examples:
"2024-02-01","2023-12-01-preview"- Parameters:
apiVersion- the API version string- Returns:
- this options object for method chaining
-