Class AzureAiStudioServiceSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AzureAiStudioServiceSettings.Builder>
co.elastic.clients.elasticsearch.inference.AzureAiStudioServiceSettings.Builder
- All Implemented Interfaces:
- WithJson<AzureAiStudioServiceSettings.Builder>,- ObjectBuilder<AzureAiStudioServiceSettings>
- Enclosing class:
- AzureAiStudioServiceSettings
public static class AzureAiStudioServiceSettings.Builder
extends WithJsonObjectBuilderBase<AzureAiStudioServiceSettings.Builder>
implements ObjectBuilder<AzureAiStudioServiceSettings>
Builder for 
AzureAiStudioServiceSettings.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRequired - A valid API key of your Azure AI Studio model deployment.build()Builds aAzureAiStudioServiceSettings.endpointType(String value) Required - The type of endpoint that is available for deployment through Azure AI Studio:tokenorrealtime.Required - The model provider for your deployment.rateLimit(RateLimitSetting value) This setting helps to minimize the number of rate limit errors returned from Azure AI Studio.This setting helps to minimize the number of rate limit errors returned from Azure AI Studio.protected AzureAiStudioServiceSettings.Builderself()Required - The target URL of your Azure AI Studio model deployment.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
apiKeyRequired - A valid API key of your Azure AI Studio model deployment. This key can be found on the overview page for your deployment in the management section of your Azure AI Studio account.IMPORTANT: You need to provide the API key only once, during the inference model creation. The get inference endpoint API does not retrieve your API key. After creating the inference model, you cannot change the associated API key. If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. API name: api_key
- 
endpointTypeRequired - The type of endpoint that is available for deployment through Azure AI Studio:tokenorrealtime. Thetokenendpoint type is for "pay as you go" endpoints that are billed per token. Therealtimeendpoint type is for "real-time" endpoints that are billed per hour of usage.API name: endpoint_type
- 
targetRequired - The target URL of your Azure AI Studio model deployment. This can be found on the overview page for your deployment in the management section of your Azure AI Studio account.API name: target
- 
providerRequired - The model provider for your deployment. Note that some providers may support only certain task types. Supported providers include:- cohere- available for- text_embeddingand- completiontask types
- databricks- available for- completiontask type only
- meta- available for- completiontask type only
- microsoft_phi- available for- completiontask type only
- mistral- available for- completiontask type only
- openai- available for- text_embeddingand- completiontask types
 API name: provider
- 
rateLimitThis setting helps to minimize the number of rate limit errors returned from Azure AI Studio. By default, theazureaistudioservice sets the number of requests allowed per minute to 240.API name: rate_limit
- 
rateLimitpublic final AzureAiStudioServiceSettings.Builder rateLimit(Function<RateLimitSetting.Builder, ObjectBuilder<RateLimitSetting>> fn) This setting helps to minimize the number of rate limit errors returned from Azure AI Studio. By default, theazureaistudioservice sets the number of requests allowed per minute to 240.API name: rate_limit
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<AzureAiStudioServiceSettings.Builder>
 
- 
buildBuilds aAzureAiStudioServiceSettings.- Specified by:
- buildin interface- ObjectBuilder<AzureAiStudioServiceSettings>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-