add ChatCompletionStream Usage return (#215)
Co-authored-by: lihang <nasa.li@deepres.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user