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

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