From 88aa732dfc3b42cac92aa9af3096ec2f71fb4628 Mon Sep 17 00:00:00 2001 From: ayush Date: Tue, 5 Aug 2025 05:43:44 +0000 Subject: [PATCH] remove omitempty tag from content field in ChatCompletionStreamChoiceDelta --- chat_stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_stream.go b/chat_stream.go index 80d16cc63..cd51353ed 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -6,7 +6,7 @@ import ( ) type ChatCompletionStreamChoiceDelta struct { - Content string `json:"content,omitempty"` + Content string `json:"content"` Role string `json:"role,omitempty"` FunctionCall *FunctionCall `json:"function_call,omitempty"` ToolCalls []ToolCall `json:"tool_calls,omitempty"`