Skip to content

Commit 1b8feae

Browse files
authored
Do not return when not present (#294)
1 parent af9ff51 commit 1b8feae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chat_stream.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import (
77
)
88

99
type ChatCompletionStreamChoiceDelta struct {
10-
Content string `json:"content"`
10+
Content string `json:"content,omitempty"`
11+
Role string `json:"role,omitempty"`
1112
}
1213

1314
type ChatCompletionStreamChoice struct {

0 commit comments

Comments
 (0)