Package com.intellijava.core.model
Class OpenaiChatResponse.Choice
java.lang.Object
com.intellijava.core.model.OpenaiChatResponse.Choice
- Enclosing class:
OpenaiChatResponse
A nested class for the API response's choice represents the model output.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the reason to end the message for validating missing response reasons.int
getIndex()
Gets the index property of the choice objectGets the model message.void
setFinish_reason
(String finish_reason) Sets the reason to end the message textvoid
setIndex
(int index) Sets the index property of the choice objectvoid
setMessage
(OpenaiChatResponse.Message message) Sets the model message.
-
Constructor Details
-
Choice
public Choice()Choice default constructor.
-
-
Method Details
-
getMessage
Gets the model message.- Returns:
- message model response message.
-
setMessage
Sets the model message.- Parameters:
message
- model response message.
-
getFinish_reason
Gets the reason to end the message for validating missing response reasons.- Returns:
- reason string.
-
setFinish_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
-