Skip to content

Commit 2f3700f

Browse files
nasa1024lihang
andauthored
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 <[email protected]>
1 parent 8677fb4 commit 2f3700f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

chat_stream.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type ChatCompletionStreamResponse struct {
2121
Created int64 `json:"created"`
2222
Model string `json:"model"`
2323
Choices []ChatCompletionStreamChoice `json:"choices"`
24-
Usage Usage `json:"usage"`
2524
}
2625

2726
// ChatCompletionStream

0 commit comments

Comments
 (0)