Stop Reason
Custom stop sequences that cause the model to stop generating further tokens.
A single string or up to 16 strings are accepted. The wire representation collapses a single-element list into a plain JSON string and serializes larger lists as a JSON array, matching the DeepSeek API contract.
Example:
val params = chatCompletionParams {
stop = StopReason(listOf("\nUser:", "\nAssistant:"))
}Content copied to clipboard