Package com.intellijava.core.model
Class OpenaiLanguageResponse.Choice
java.lang.Object
com.intellijava.core.model.OpenaiLanguageResponse.Choice
- Enclosing class:
OpenaiLanguageResponse
A nested class for the API response's choice represents the model output.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the finish_reason property of the choice objectint
getIndex()
Gets the index property of the choice objectGets the logprobs property of the choice objectgetText()
Gets the text property of the choice objectvoid
setFinish_reason
(String finish_reason) Sets the finish_reason property of the choice objectvoid
setIndex
(int index) Sets the index property of the choice objectvoid
setLogprobs
(Object logprobs) Sets the logprobs property of the choice objectvoid
Sets the text property of the choice object
-
Constructor Details
-
Choice
public Choice()Choice default constructor.
-
-
Method Details
-
getText
Gets the text property of the choice object- Returns:
- the text of the choice object
-
setText
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
Gets the logprobs property of the choice object- Returns:
- the logprobs of the choice object
-
setLogprobs
Sets the logprobs property of the choice object- Parameters:
logprobs
- the logprobs of the choice object
-
getFinish_reason
Gets the finish_reason property of the choice object- Returns:
- the finish_reason of the choice object
-
setFinish_reason
Sets the finish_reason property of the choice object- Parameters:
finish_reason
- the finish_reason of the choice object
-