Skip to content

Commit 88aa732

Browse files
remove omitempty tag from content field in ChatCompletionStreamChoiceDelta
1 parent c4273cb commit 88aa732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chat_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
type ChatCompletionStreamChoiceDelta struct {
9-
Content string `json:"content,omitempty"`
9+
Content string `json:"content"`
1010
Role string `json:"role,omitempty"`
1111
FunctionCall *FunctionCall `json:"function_call,omitempty"`
1212
ToolCalls []ToolCall `json:"tool_calls,omitempty"`

0 commit comments

Comments
 (0)