Class DeepSeekCompletionResponse.Usage
java.lang.Object
de.entwicklertraining.deepseek4j.chat.completion.DeepSeekCompletionResponse.Usage
- Enclosing class:
DeepSeekCompletionResponse
Represents usage statistics for the API call. [cite: 27]
-
Method Summary
Modifier and TypeMethodDescriptionintGets detailed token counts, specifically for reasoning tokens (optional).intGets the number of prompt tokens served from cache.intGets the number of prompt tokens not served from cache.intint
-
Method Details
-
getCompletionTokens
public int getCompletionTokens() -
getPromptTokens
public int getPromptTokens() -
getPromptCacheHitTokens
public int getPromptCacheHitTokens()Gets the number of prompt tokens served from cache. -
getPromptCacheMissTokens
public int getPromptCacheMissTokens()Gets the number of prompt tokens not served from cache. -
getTotalTokens
public int getTotalTokens() -
getCompletionTokensDetails
Gets detailed token counts, specifically for reasoning tokens (optional).- Returns:
- A CompletionTokensDetails object, or null if not present. [cite: 27]
-