always provide content even if empty (#5778)

This commit is contained in:
Jeffrey Morgan
2024-07-18 11:28:19 -07:00
committed by GitHub
parent 319fb1ce03
commit 84e5721f3a

View File

@@ -119,7 +119,7 @@ func (t Tools) String() string {
// of images.
type Message struct {
Role string `json:"role"`
Content string `json:"content,omitempty"`
Content string `json:"content"`
Images []ImageData `json:"images,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
}