Package com.openai.models.embeddings
        Class CreateEmbeddingResponse.Usage
- 
                    
                    - All Implemented Interfaces:
 
 public final class CreateEmbeddingResponse.UsageThe usage information for the request. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classCreateEmbeddingResponse.Usage.BuilderA builder for Usage. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final LongpromptTokens()The number of tokens used by the prompt. final LongtotalTokens()The total number of tokens used by the request. final JsonField<Long>_promptTokens()Returns the raw JSON value of promptTokens. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final CreateEmbeddingResponse.Usage.BuildertoBuilder()final CreateEmbeddingResponse.Usagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateEmbeddingResponse.Usage.Builderbuilder()Returns a mutable builder for constructing an instance of Usage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        promptTokensfinal Long promptTokens() The number of tokens used by the prompt. 
 - 
                                        totalTokensfinal Long totalTokens() The total number of tokens used by the request. 
 - 
                                        _promptTokensfinal JsonField<Long> _promptTokens() Returns the raw JSON value of promptTokens. Unlike promptTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _totalTokensfinal JsonField<Long> _totalTokens() Returns the raw JSON value of totalTokens. Unlike totalTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal CreateEmbeddingResponse.Usage.Builder toBuilder() 
 - 
                                        validatefinal CreateEmbeddingResponse.Usage validate() 
 - 
                                        builderfinal static CreateEmbeddingResponse.Usage.Builder builder() Returns a mutable builder for constructing an instance of Usage. The following fields are required: .promptTokens() .totalTokens()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-