Interface OpenAIChatResponse.Choice

  • Enclosing interface:
    OpenAIChatResponse

    public static interface OpenAIChatResponse.Choice
    Represents a choice in the chat completion response.
    • Method Detail

      • getMessage

        OpenAIChatResponse.Message getMessage()
        Gets the message in the chat completion response.
        Returns:
        the message in the chat completion response
      • getFinishDetails

        OpenAIChatResponse.FinishDetails getFinishDetails()
        Gets the finish details in the chat completion response.
        Returns:
        the finish details in the chat completion response
      • getIndex

        int getIndex()
        Gets the index of the choice.
        Returns:
        the index of the choice