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:
@@ -21,7 +21,6 @@ type ChatCompletionStreamResponse struct {
|
||||
Created int64 `json:"created"`
|
||||
Model string `json:"model"`
|
||||
Choices []ChatCompletionStreamChoice `json:"choices"`
|
||||
Usage Usage `json:"usage"`
|
||||
}
|
||||
|
||||
// ChatCompletionStream
|
||||
|
||||
Reference in New Issue
Block a user