stopSequences property

List<String>? stopSequences
getter/setter pair

A list of character sequences that will stop the model from generating further tokens.

If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use ["\n", "###"] to stop generation at a new line or a specific marker.

Optional.

Implementation

core.List<core.String>? stopSequences;