From 2f3700f4c500de5273f615786e5f69a02dfbcbc9 Mon Sep 17 00:00:00 2001 From: harry <541573560@qq.com> Date: Tue, 4 Apr 2023 20:10:54 +0800 Subject: [PATCH] to fix v1.5.8 Usage return (#223) * add ChatCompletionStream Usage return * ChatCompletionStreamResponse will bot return Usage * remove the Usage field from the response, it would not be there anyway. --------- Co-authored-by: lihang --- chat_stream.go | 1 - 1 file changed, 1 deletion(-) diff --git a/chat_stream.go b/chat_stream.go index 009e1b135..821129295 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -21,7 +21,6 @@ type ChatCompletionStreamResponse struct { Created int64 `json:"created"` Model string `json:"model"` Choices []ChatCompletionStreamChoice `json:"choices"` - Usage Usage `json:"usage"` } // ChatCompletionStream