Skip to content

Commit

Permalink
add ChatCompletionStream Usage return (sashabaranov#215)
Browse files Browse the repository at this point in the history
Co-authored-by: lihang <nasa.li@deepres.com>
  • Loading branch information
nasa1024 and lihang authored Apr 1, 2023
1 parent 8e3a046 commit b542086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type ChatCompletionStreamResponse struct {
Created int64 `json:"created"`
Model string `json:"model"`
Choices []ChatCompletionStreamChoice `json:"choices"`
Usage Usage `json:"usage"`
}

// ChatCompletionStream
Expand Down

0 comments on commit b542086

Please sign in to comment.