From b542086cbb22806645d660cbdc2f0f2414aabf86 Mon Sep 17 00:00:00 2001 From: harry <541573560@qq.com> Date: Sun, 2 Apr 2023 00:06:22 +0800 Subject: [PATCH] add ChatCompletionStream Usage return (#215) Co-authored-by: lihang --- chat_stream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chat_stream.go b/chat_stream.go index 821129295..009e1b135 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -21,6 +21,7 @@ type ChatCompletionStreamResponse struct { Created int64 `json:"created"` Model string `json:"model"` Choices []ChatCompletionStreamChoice `json:"choices"` + Usage Usage `json:"usage"` } // ChatCompletionStream