add ChatCompletionStream Usage return (#215)

Co-authored-by: lihang <nasa.li@deepres.com>
This commit is contained in:
harryandlihang authored and GitHub committed 2023-04-01 20:06:22 +04:00
1 parent 8e3a04664e
commit b542086cbb
1 file changed
+1
+1
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