Class ApiChatCompletionsResponse
java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsResponse
Represents a chat completion response returned by model, based on the provided input.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionchoices()A list of chat completion choices.created()The instant when the chat completion was created.id()A unique identifier for the chat completion.model()The model used for the chat completion.object()The object type, which is alwayschat.completion.Specifies the processing type used for serving the request.usage()Usage statistics for the completion request.
-
Method Details
-
choices
A list of chat completion choices. Can be more than one if n is greater than 1.- Returns:
- The list of choices.
-
created
The instant when the chat completion was created.- Returns:
- The creation instant.
-
id
-
model
-
object
-
serviceTier
Specifies the processing type used for serving the request.- Returns:
- The service tier.
-
usage
Usage statistics for the completion request.- Returns:
- The usage statistics.
-