Class PutAzureopenaiRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutAzureopenaiRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutAzureopenaiRequest.Builder
- All Implemented Interfaces:
WithJson<PutAzureopenaiRequest.Builder>
,ObjectBuilder<PutAzureopenaiRequest>
- Enclosing class:
- PutAzureopenaiRequest
public static class PutAzureopenaiRequest.Builder
extends RequestBase.AbstractBuilder<PutAzureopenaiRequest.Builder>
implements ObjectBuilder<PutAzureopenaiRequest>
Builder for
PutAzureopenaiRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureopenaiInferenceId
(String value) Required - The unique identifier of the inference endpoint.build()
Builds aPutAzureopenaiRequest
.The chunking configuration object.chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.protected PutAzureopenaiRequest.Builder
self()
service
(AzureOpenAIServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings
(Function<AzureOpenAIServiceSettings.Builder, ObjectBuilder<AzureOpenAIServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.Settings to configure the inference task.taskType
(AzureOpenAITaskType value) Required - The type of the inference task that the model will perform.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
azureopenaiInferenceId
Required - The unique identifier of the inference endpoint.API name:
azureopenai_inference_id
-
chunkingSettings
public final PutAzureopenaiRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutAzureopenaiRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
service
Required - The type of service supported for the specified task type. In this case,azureopenai
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to theazureopenai
service.API name:
service_settings
-
serviceSettings
public final PutAzureopenaiRequest.Builder serviceSettings(Function<AzureOpenAIServiceSettings.Builder, ObjectBuilder<AzureOpenAIServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to theazureopenai
service.API name:
service_settings
-
taskSettings
Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskSettings
public final PutAzureopenaiRequest.Builder taskSettings(Function<AzureOpenAITaskSettings.Builder, ObjectBuilder<AzureOpenAITaskSettings>> fn) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings
-
taskType
Required - The type of the inference task that the model will perform. NOTE: Thechat_completion
task type only supports streaming and only through the _stream API.API name:
task_type
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutAzureopenaiRequest.Builder>
-
build
Builds aPutAzureopenaiRequest
.- Specified by:
build
in interfaceObjectBuilder<PutAzureopenaiRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-