Class OpenaiLanguageResponse.Choice

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

public static class OpenaiLanguageResponse.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

    • getText

      public String getText()
      Gets the text property of the choice object
      Returns:
      the text of the choice object
    • setText

      public void setText(String text)
      Sets the text property of the choice object
      Parameters:
      text - the text of the choice object
    • 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
    • getLogprobs

      public Object getLogprobs()
      Gets the logprobs property of the choice object
      Returns:
      the logprobs of the choice object
    • setLogprobs

      public void setLogprobs(Object logprobs)
      Sets the logprobs property of the choice object
      Parameters:
      logprobs - the logprobs of the choice object
    • getFinish_reason

      public String getFinish_reason()
      Gets the finish_reason property of the choice object
      Returns:
      the finish_reason of the choice object
    • setFinish_reason

      public void setFinish_reason(String finish_reason)
      Sets the finish_reason property of the choice object
      Parameters:
      finish_reason - the finish_reason of the choice object