File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
src/main/java/com/plexpt/chatgpt/entity Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11package com .plexpt .chatgpt .entity .billing ;
22
3+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
34import com .fasterxml .jackson .annotation .JsonProperty ;
4-
5+ import com . plexpt . chatgpt . entity . chat . CompletionTokensDetails ;
56import lombok .Data ;
67
78/**
89 * @author plexpt
910 */
1011@ Data
12+ @ JsonIgnoreProperties (ignoreUnknown = true )
1113public class Usage {
1214 @ JsonProperty ("prompt_tokens" )
1315 private long promptTokens ;
1416 @ JsonProperty ("completion_tokens" )
1517 private long completionTokens ;
1618 @ JsonProperty ("total_tokens" )
1719 private long totalTokens ;
20+
21+ @ JsonIgnoreProperties (ignoreUnknown = true )
22+ private CompletionTokensDetails completion_tokens_details ;
23+
24+
1825}
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ public class ChatCompletionResponse {
2525 private String systemFingerprint ;
2626 private List <ChatChoice > choices ;
2727 private Usage usage ;
28+
29+ @ JsonIgnoreProperties (ignoreUnknown = true )
2830 Object logprobs ;
2931
3032
Original file line number Diff line number Diff line change 1+ package com .plexpt .chatgpt .entity .chat ;
2+
3+
4+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
5+ import lombok .Data ;
6+
7+ @ JsonIgnoreProperties (ignoreUnknown = true )
8+ @ Data
9+ public class CompletionTokensDetails {
10+
11+ Long reasoning_tokens ;
12+ }
You can’t perform that action at this time.
0 commit comments