Package com.openai.models
Class ChatCompletionCreateParams.Stop
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.Stop
Up to 4 sequences where the API will stop generating further tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionCreateParams.Stop.Visitor
An 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 Boolean
isString()
final Boolean
isStrings()
final String
asString()
final List<String>
asStrings()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ChatCompletionCreateParams.Stop.Visitor<T> visitor)
final ChatCompletionCreateParams.Stop
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionCreateParams.Stop
ofString(String string)
final static ChatCompletionCreateParams.Stop
ofStrings(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)
-
-
-
-