Package com.bytedesk.ai.statistic_token
Class StatisticTokenRequest
java.lang.Object
com.bytedesk.core.base.BaseRequest
com.bytedesk.ai.statistic_token.StatisticTokenRequest
- All Implemented Interfaces:
PageableRequest,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAI model type (gpt-4, gpt-3.5, claude, gemini, etc.)private StringAI provider (openai, baidu, zhipuai, etc.)private LongAverage response time in millisecondsprivate LongNumber of completion tokens consumedprivate StringDate for daily statistics (YYYY-MM-DD format)private LongNumber of failed requestsprivate IntegerHour of the day for hourly statistics (0-23)private LongNumber of prompt tokens consumedprivate StringStatistics status (active/archived)private LongNumber of successful requestsprivate BigDecimalCost per token in USDprivate BigDecimalTotal cost in USDprivate LongTotal number of requests madeprivate LongTotal number of tokens consumedFields inherited from class com.bytedesk.core.base.BaseRequest
channel, content, orgUid, pageNumber, pageSize, type, uid, userUid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseRequest
getPageable, toJson, validate
-
Field Details
-
aiModelType
AI model type (gpt-4, gpt-3.5, claude, gemini, etc.) -
aiProvider
AI provider (openai, baidu, zhipuai, etc.) -
promptTokens
Number of prompt tokens consumed -
completionTokens
Number of completion tokens consumed -
totalTokens
Total number of tokens consumed -
totalRequests
Total number of requests made -
successRequests
Number of successful requests -
failedRequests
Number of failed requests -
tokenUnitPrice
Cost per token in USD -
totalCost
Total cost in USD -
avgResponseTime
Average response time in milliseconds -
hour
Hour of the day for hourly statistics (0-23) -
date
Date for daily statistics (YYYY-MM-DD format) -
status
Statistics status (active/archived)
-
-
Constructor Details
-
StatisticTokenRequest
public StatisticTokenRequest()
-