Class ApiChatCompletionsResponseChoiceMessage


  • public final class ApiChatCompletionsResponseChoiceMessage
    extends Object
    A chat completion message generated by the model.
    Since:
    8.5.0
    • Method Detail

      • audio

        public ApiChatCompletionsResponseMessageAudio audio()
        If the audio output modality is requested, this object contains data about the audio response from the model.
        Returns:
        The audio response data.
      • content

        public String content()
        The contents of the message.
        Returns:
        The message content.
      • refusal

        public String refusal()
        The refusal message generated by the model.
        Returns:
        The refusal message.
      • role

        public String role()
        The role of the author of this message.
        Returns:
        The message role.