Class OpenaiChatResponse.Choice

java.lang.Object
com.intellijava.core.model.OpenaiChatResponse.Choice
Enclosing class:
OpenaiChatResponse

public static class OpenaiChatResponse.Choice extends Object
A nested class for the API response's choice represents the model output.
  • Constructor Details

    • Choice

      public Choice()
      Choice default constructor.
  • Method Details

    • getMessage

      public OpenaiChatResponse.Message getMessage()
      Gets the model message.
      Returns:
      message model response message.
    • setMessage

      public void setMessage(OpenaiChatResponse.Message message)
      Sets the model message.
      Parameters:
      message - model response message.
    • getFinish_reason

      public String getFinish_reason()
      Gets the reason to end the message for validating missing response reasons.
      Returns:
      reason string.
    • setFinish_reason

      public void setFinish_reason(String finish_reason)
      Sets the reason to end the message text
      Parameters:
      finish_reason - string.
    • getIndex

      public int getIndex()
      Gets the index property of the choice object
      Returns:
      the index of the choice object
    • setIndex

      public void setIndex(int index)
      Sets the index property of the choice object
      Parameters:
      index - the index of the choice object