Browse Source

always provide content even if empty (#5778)

Jeffrey Morgan 9 months ago
parent
commit
84e5721f3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/types.go

+ 1 - 1
api/types.go

@@ -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"`
 }