Class ApiChatCompletionsResponse
- java.lang.Object
-
- de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsResponse
-
public final class ApiChatCompletionsResponse extends Object
Represents a chat completion response returned by model, based on the provided input.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ApiChatCompletionsResponseChoice>choices()A list of chat completion choices.Instantcreated()The instant when the chat completion was created.Stringid()A unique identifier for the chat completion.Stringmodel()The model used for the chat completion.Stringobject()The object type, which is alwayschat.completion.StringserviceTier()Specifies the processing type used for serving the request.ApiChatCompletionsResponseUsageusage()Usage statistics for the completion request.
-
-
-
Method Detail
-
choices
public List<ApiChatCompletionsResponseChoice> choices()
A list of chat completion choices. Can be more than one if n is greater than 1.- Returns:
- The list of choices.
-
created
public Instant created()
The instant when the chat completion was created.- Returns:
- The creation instant.
-
id
public String id()
A unique identifier for the chat completion.- Returns:
- The chat completion ID.
-
model
public String model()
The model used for the chat completion.- Returns:
- The model name.
-
object
public String object()
The object type, which is alwayschat.completion.- Returns:
- The object type.
-
serviceTier
public String serviceTier()
Specifies the processing type used for serving the request.- Returns:
- The service tier.
-
usage
public ApiChatCompletionsResponseUsage usage()
Usage statistics for the completion request.- Returns:
- The usage statistics.
-
-