Package com.openai.models.completions
        Class CompletionCreateParams.Stop
- 
                    
                    - All Implemented Interfaces:
 
 public final class CompletionCreateParams.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 SummaryNested Classes Modifier and Type Class Description public interfaceCompletionCreateParams.Stop.VisitorAn interface that defines how to map each variant of Stop to a value of type T. 
 - 
                                
                            
                                Method SummaryModifier 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(CompletionCreateParams.Stop.Visitor<T> visitor)final CompletionCreateParams.Stopvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CompletionCreateParams.StopofString(String string)final static CompletionCreateParams.StopofStrings(List<String> strings)- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        acceptfinal <T extends Any> T accept(CompletionCreateParams.Stop.Visitor<T> visitor) 
 - 
                                        validatefinal CompletionCreateParams.Stop validate() 
 - 
                                        ofStringfinal static CompletionCreateParams.Stop ofString(String string) 
 - 
                                        ofStringsfinal static CompletionCreateParams.Stop ofStrings(List<String> strings) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-