add ChatCompletionStream Usage return (#215)

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