Skip to content

Commit 8a5ed74

Browse files
committed
feat: adapt kimi token usage
1 parent ccd64b9 commit 8a5ed74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat_stream.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ type ChatCompletionStreamChoice struct {
8080
Logprobs *ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
8181
FinishReason FinishReason `json:"finish_reason"`
8282
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
83+
84+
Usage *Usage `json:"usage,omitempty"`
8385
}
8486

8587
type PromptFilterResult struct {

0 commit comments

Comments
 (0)