Class ChatCompletionCreateParams.Stop
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.StopNot supported with latest reasoning models
o3ando4-mini.Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatCompletionCreateParams.Stop.VisitorAn interface that defines how to map each variant of Stop to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>string()final Optional<List<String>>strings()final BooleanisString()final BooleanisStrings()final StringasString()final List<String>asStrings()final Optional<JsonValue>_json()final <T extends Any> Taccept(ChatCompletionCreateParams.Stop.Visitor<T> visitor)final ChatCompletionCreateParams.Stopvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionCreateParams.StopofString(String string)final static ChatCompletionCreateParams.StopofStrings(List<String> strings)-
-
Method Detail
-
accept
final <T extends Any> T accept(ChatCompletionCreateParams.Stop.Visitor<T> visitor)
-
validate
final ChatCompletionCreateParams.Stop validate()
-
ofString
final static ChatCompletionCreateParams.Stop ofString(String string)
-
ofStrings
final static ChatCompletionCreateParams.Stop ofStrings(List<String> strings)
-
-
-
-