Interface OpenAIChatResponse.Choice
-
- Enclosing interface:
- OpenAIChatResponse
public static interface OpenAIChatResponse.ChoiceRepresents a choice in the chat completion response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpenAIChatResponse.FinishDetailsgetFinishDetails()Gets the finish details in the chat completion response.intgetIndex()Gets the index of the choice.OpenAIChatResponse.MessagegetMessage()Gets the message 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
-
-