Skip to content

Commit

Permalink
to fix v1.5.8 Usage return (sashabaranov#223)
Browse files Browse the repository at this point in the history
* add ChatCompletionStream Usage return

* ChatCompletionStreamResponse will bot return Usage

* remove the Usage field from the response, it would not be there anyway.

---------

Co-authored-by: lihang <nasa.li@deepres.com>
  • Loading branch information
nasa1024 and lihang authored Apr 4, 2023
1 parent 8677fb4 commit 2f3700f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ 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 2f3700f

Please sign in to comment.