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 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

      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 always chat.completion.
      Returns:
      The object type.
    • serviceTier

      public String 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.