public static class AzureOpenAiImageModel.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AzureOpenAiImageModel.Builder |
apiKey(String apiKey)
Sets the Azure OpenAI API key.
|
AzureOpenAiImageModel |
build() |
AzureOpenAiImageModel.Builder |
deploymentName(String deploymentName)
Sets the deployment name in Azure OpenAI.
|
AzureOpenAiImageModel.Builder |
endpoint(String endpoint)
Sets the Azure OpenAI endpoint.
|
AzureOpenAiImageModel.Builder |
logRequestsAndResponses(Boolean logRequestsAndResponses) |
AzureOpenAiImageModel.Builder |
maxRetries(Integer maxRetries) |
AzureOpenAiImageModel.Builder |
nonAzureApiKey(String nonAzureApiKey)
Used to authenticate with the OpenAI service, instead of Azure OpenAI.
|
AzureOpenAiImageModel.Builder |
openAIClient(com.azure.ai.openai.OpenAIClient openAIClient) |
AzureOpenAiImageModel.Builder |
proxyOptions(com.azure.core.http.ProxyOptions proxyOptions) |
AzureOpenAiImageModel.Builder |
quality(com.azure.ai.openai.models.ImageGenerationQuality imageGenerationQuality)
Sets the quality of the image, using the ImageGenerationQuality enum.
|
AzureOpenAiImageModel.Builder |
quality(String quality)
Sets the quality of the image.
|
AzureOpenAiImageModel.Builder |
responseFormat(com.azure.ai.openai.models.ImageGenerationResponseFormat imageGenerationResponseFormat)
Sets the response format of the image, using the ImageGenerationResponseFormat enum.
|
AzureOpenAiImageModel.Builder |
responseFormat(String responseFormat)
Sets the response format of the image.
|
AzureOpenAiImageModel.Builder |
serviceVersion(String serviceVersion)
Sets the Azure OpenAI API service version.
|
AzureOpenAiImageModel.Builder |
size(com.azure.ai.openai.models.ImageSize imageSize)
Sets the size of the image, using the ImageSize enum.
|
AzureOpenAiImageModel.Builder |
size(String size)
Sets the size of the image.
|
AzureOpenAiImageModel.Builder |
style(com.azure.ai.openai.models.ImageGenerationStyle imageGenerationStyle)
Sets the style of the image, using the ImageGenerationStyle enum.
|
AzureOpenAiImageModel.Builder |
style(String style)
Sets the style of the image.
|
AzureOpenAiImageModel.Builder |
timeout(Duration timeout) |
AzureOpenAiImageModel.Builder |
tokenCredential(com.azure.core.credential.TokenCredential tokenCredential)
Used to authenticate to Azure OpenAI with Azure Active Directory credentials.
|
AzureOpenAiImageModel.Builder |
user(String user)
Sets the user of the image.
|
public AzureOpenAiImageModel.Builder endpoint(String endpoint)
endpoint - The Azure OpenAI endpoint in the format: https://{resource}.openai.azure.com/public AzureOpenAiImageModel.Builder serviceVersion(String serviceVersion)
serviceVersion - The Azure OpenAI API service version in the format: 2023-05-15public AzureOpenAiImageModel.Builder apiKey(String apiKey)
apiKey - The Azure OpenAI API key.public AzureOpenAiImageModel.Builder nonAzureApiKey(String nonAzureApiKey)
nonAzureApiKey - The non-Azure OpenAI API keypublic AzureOpenAiImageModel.Builder tokenCredential(com.azure.core.credential.TokenCredential tokenCredential)
tokenCredential - the credentials to authenticate with Azure Active Directorypublic AzureOpenAiImageModel.Builder deploymentName(String deploymentName)
deploymentName - The Deployment name.public AzureOpenAiImageModel.Builder quality(String quality)
quality - The quality of the image.public AzureOpenAiImageModel.Builder quality(com.azure.ai.openai.models.ImageGenerationQuality imageGenerationQuality)
imageGenerationQuality - The quality of the image.public AzureOpenAiImageModel.Builder size(String size)
size - The size of the image.public AzureOpenAiImageModel.Builder size(com.azure.ai.openai.models.ImageSize imageSize)
imageSize - The size of the image.public AzureOpenAiImageModel.Builder user(String user)
user - The user of the image.public AzureOpenAiImageModel.Builder style(String style)
style - The style of the image.public AzureOpenAiImageModel.Builder style(com.azure.ai.openai.models.ImageGenerationStyle imageGenerationStyle)
imageGenerationStyle - The style of the image.public AzureOpenAiImageModel.Builder responseFormat(String responseFormat)
responseFormat - The response format of the image.public AzureOpenAiImageModel.Builder responseFormat(com.azure.ai.openai.models.ImageGenerationResponseFormat imageGenerationResponseFormat)
imageGenerationResponseFormat - The response format of the image.public AzureOpenAiImageModel.Builder timeout(Duration timeout)
public AzureOpenAiImageModel.Builder maxRetries(Integer maxRetries)
public AzureOpenAiImageModel.Builder proxyOptions(com.azure.core.http.ProxyOptions proxyOptions)
public AzureOpenAiImageModel.Builder logRequestsAndResponses(Boolean logRequestsAndResponses)
public AzureOpenAiImageModel.Builder openAIClient(com.azure.ai.openai.OpenAIClient openAIClient)
public AzureOpenAiImageModel build()
Copyright © 2024. All rights reserved.