Class ChatCompletionStreamOptions.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionStreamOptions.BuilderA builder for ChatCompletionStreamOptions. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        includeObfuscationfinal ChatCompletionStreamOptions.Builder includeObfuscation(Boolean includeObfuscation) When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an obfuscationfield on streaming delta events to normalize payload sizes as a mitigation to certain side-channel attacks. These obfuscation fields are included by default, but add a small amount of overhead to the data stream. You can setinclude_obfuscationto false to optimize for bandwidth if you trust the network links between your application and the OpenAI API.
 - 
                                        includeObfuscationfinal ChatCompletionStreamOptions.Builder includeObfuscation(JsonField<Boolean> includeObfuscation) Sets Builder.includeObfuscation to an arbitrary JSON value. You should usually call Builder.includeObfuscation with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        includeUsagefinal ChatCompletionStreamOptions.Builder includeUsage(Boolean includeUsage) If set, an additional chunk will be streamed before the data: [DONE]message. Theusagefield on this chunk shows the token usage statistics for the entire request, and thechoicesfield will always be an empty array.All other chunks will also include a usagefield, but with a null value. NOTE: If the stream is interrupted, you may not receive the final usage chunk which contains the total token usage for the request.
 - 
                                        includeUsagefinal ChatCompletionStreamOptions.Builder includeUsage(JsonField<Boolean> includeUsage) Sets Builder.includeUsage to an arbitrary JSON value. You should usually call Builder.includeUsage with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        additionalPropertiesfinal ChatCompletionStreamOptions.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal ChatCompletionStreamOptions.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal ChatCompletionStreamOptions.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal ChatCompletionStreamOptions.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal ChatCompletionStreamOptions.Builder removeAllAdditionalProperties(Set<String> keys) 
 - 
                                        buildfinal ChatCompletionStreamOptions build() Returns an immutable instance of ChatCompletionStreamOptions. Further updates to this Builder will not mutate the returned instance. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-