Do not return when not present (#294)

This commit is contained in:
quzard
2023-05-02 21:41:21 +04:00
committed by GitHub
parent af9ff51077
commit 1b8feae0b6
+2 -1
View File
@@ -7,7 +7,8 @@ import (
) )
type ChatCompletionStreamChoiceDelta struct { type ChatCompletionStreamChoiceDelta struct {
Content string `json:"content"` Content string `json:"content,omitempty"`
Role string `json:"role,omitempty"`
} }
type ChatCompletionStreamChoice struct { type ChatCompletionStreamChoice struct {