Class ChatCompletionUnifiedRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.ChatCompletionUnifiedRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class ChatCompletionUnifiedRequest
extends RequestBase
implements JsonpSerializable
Perform chat completion inference
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChatCompletionUnifiedRequest>static final Endpoint<ChatCompletionUnifiedRequest,BinaryResponse, ErrorResponse> Endpoint "inference.chat_completion_unified". -
Method Summary
Modifier and TypeMethodDescriptionfinal RequestChatCompletionRequired - Request body.protected static JsonpDeserializer<ChatCompletionUnifiedRequest>final StringRequired - The inference Idstatic ChatCompletionUnifiedRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final Timetimeout()Specifies the amount of time to wait for the inference request to complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
Endpoint "inference.chat_completion_unified".
-
-
Method Details
-
of
-
inferenceId
Required - The inference IdAPI name:
inference_id -
timeout
Specifies the amount of time to wait for the inference request to complete.API name:
timeout -
chatCompletionRequest
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createChatCompletionUnifiedRequestDeserializer
protected static JsonpDeserializer<ChatCompletionUnifiedRequest> createChatCompletionUnifiedRequestDeserializer()
-