Просмотр исходного кода

always provide content even if empty (#5778)

Jeffrey Morgan 9 месяцев назад
Родитель
Сommit
84e5721f3a
1 измененных файлов с 1 добавлено и 1 удалено
  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"`
 }