Browse Source

always provide content even if empty (#5778)

Jeffrey Morgan 9 tháng trước cách đây
mục cha
commit
84e5721f3a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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"`
 }