Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Choice |
build() |
Choice.Builder |
copy(Choice model) |
Choice.Builder |
finishReason(String finishReason)
The reason why the model stopped generating tokens.
|
Choice.Builder |
index(Integer index)
The index of the generated text.
|
Choice.Builder |
logprobs(Logprobs logprobs) |
Choice.Builder |
text(String text)
The generated text.
|
public Choice.Builder index(Integer index)
The index of the generated text.
index
- the value to setpublic Choice.Builder text(String text)
The generated text.
text
- the value to setpublic Choice.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 Choice.Builder logprobs(Logprobs logprobs)
public Choice build()
public Choice.Builder copy(Choice model)
Copyright © 2016–2024. All rights reserved.