to fix v1.5.8 Usage return (#223)

* 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>
This commit is contained in:
harry
2023-04-04 20:10:54 +08:00
committed by GitHub
parent 8677fb4bb4
commit 2f3700f4c5

View File

@@ -21,7 +21,6 @@ type ChatCompletionStreamResponse struct {
Created int64 `json:"created"` Created int64 `json:"created"`
Model string `json:"model"` Model string `json:"model"`
Choices []ChatCompletionStreamChoice `json:"choices"` Choices []ChatCompletionStreamChoice `json:"choices"`
Usage Usage `json:"usage"`
} }
// ChatCompletionStream // ChatCompletionStream