public static class ChatChoice.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChatChoice |
build() |
ChatChoice.Builder |
copy(ChatChoice model) |
ChatChoice.Builder |
finishReason(String finishReason)
The reason why the model stopped generating tokens.
|
ChatChoice.Builder |
index(Integer index)
The index of the chat.
|
ChatChoice.Builder |
logprobs(Logprobs logprobs) |
ChatChoice.Builder |
message(Message message) |
public ChatChoice.Builder index(Integer index)
The index of the chat.
index
- the value to setpublic ChatChoice.Builder message(Message message)
public ChatChoice.Builder finishReason(String finishReason)
The reason why the model stopped generating tokens.
Stops if the model hits a natural stop point or a provided stop sequence. Returns the length if the tokens reach the specified maximum number of tokens.
finishReason
- the value to setpublic ChatChoice.Builder logprobs(Logprobs logprobs)
public ChatChoice build()
public ChatChoice.Builder copy(ChatChoice model)
Copyright © 2016–2024. All rights reserved.