Skip to content

Commit b542086

Browse files
nasa1024lihang
andauthored
add ChatCompletionStream Usage return (#215)
Co-authored-by: lihang <[email protected]>
1 parent 8e3a046 commit b542086

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chat_stream.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type ChatCompletionStreamResponse struct {
2121
Created int64 `json:"created"`
2222
Model string `json:"model"`
2323
Choices []ChatCompletionStreamChoice `json:"choices"`
24+
Usage Usage `json:"usage"`
2425
}
2526

2627
// ChatCompletionStream

0 commit comments

Comments
 (0)