add ChatCompletionStream Usage return (#215)

Co-authored-by: lihang <nasa.li@deepres.com>
This commit is contained in:
harry
2023-04-02 00:06:22 +08:00
committed by GitHub
parent 8e3a04664e
commit b542086cbb

View File

@@ -21,6 +21,7 @@ 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