Skip to content

Commit

Permalink
Do not return when not present (sashabaranov#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed May 2, 2023
1 parent af9ff51 commit 1b8feae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
)

type ChatCompletionStreamChoiceDelta struct {
Content string `json:"content"`
Content string `json:"content,omitempty"`
Role string `json:"role,omitempty"`
}

type ChatCompletionStreamChoice struct {
Expand Down

0 comments on commit 1b8feae

Please sign in to comment.