validate_stop

Function validate_stop 

Source
pub fn validate_stop(stop: &StringOrArray) -> Result<(), ValidationError>
Expand description

Validates stop sequences (max 4, non-empty strings) Used by both ChatCompletionRequest and ResponsesRequest