Class PutOpenshiftAiRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.PutOpenshiftAiRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class PutOpenshiftAiRequest extends RequestBase implements JsonpSerializable
Create an OpenShift AI inference endpoint.

Create an inference endpoint to perform an inference task with the openshift_ai service.

See Also:
  • Field Details

  • Method Details

    • of

    • chunkingSettings

      @Nullable public final InferenceChunkingSettings chunkingSettings()
      The chunking configuration object. Applies only to the text_embedding task type. Not applicable to the rerank, completion, or chat_completion task types.

      API name: chunking_settings

    • openshiftaiInferenceId

      public final String openshiftaiInferenceId()
      Required - The unique identifier of the inference endpoint.

      API name: openshiftai_inference_id

    • service

      public final OpenShiftAiServiceType service()
      Required - The type of service supported for the specified task type. In this case, openshift_ai.

      API name: service

    • serviceSettings

      public final OpenShiftAiServiceSettings serviceSettings()
      Required - Settings used to install the inference model. These settings are specific to the openshift_ai service.

      API name: service_settings

    • taskSettings

      @Nullable public final OpenShiftAiTaskSettings taskSettings()
      Settings to configure the inference task. Applies only to the rerank task type. Not applicable to the text_embedding, completion, or chat_completion task types. These settings are specific to the task type you specified.

      API name: task_settings

    • taskType

      public final OpenShiftAiTaskType taskType()
      Required - The type of the inference task that the model will perform. NOTE: The chat_completion task type only supports streaming and only through the _stream API.

      API name: task_type

    • timeout

      @Nullable public final Time timeout()
      Specifies the amount of time to wait for the inference endpoint to be created.

      API name: timeout

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • rebuild

      Returns:
      New PutOpenshiftAiRequest.Builder initialized with field values of this instance
    • setupPutOpenshiftAiRequestDeserializer

      protected static void setupPutOpenshiftAiRequestDeserializer(ObjectDeserializer<PutOpenshiftAiRequest.Builder> op)