Interface OpenAIChatResponse


  • public interface OpenAIChatResponse
    Represents the response from the OpenAI chat completion API.
    • Method Detail

      • getId

        String getId()
        Gets the id of the chat completion response.
        Returns:
        the id of the chat completion response
      • getObject

        String getObject()
        Gets the object of the chat completion response.
        Returns:
        the object of the chat completion response
      • getCreated

        Long getCreated()
        Gets the created time of the chat completion response.
        Returns:
        the created time of the chat completion response
      • getModel

        String getModel()
        Gets the model of the chat completion response.
        Returns:
        the model of the chat completion response
      • getUsage

        List<OpenAIChatResponse.Usage> getUsage()
        Gets the usage of the chat completion response.
        Returns:
        the usage of the chat completion response
      • getChoices

        List<OpenAIChatResponse.Choice> getChoices()
        Gets the choices of the chat completion response.
        Returns:
        the choices of the chat completion response