From 84e5721f3a2febbd8bc2600bedcaa6e67aaa9b49 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 18 Jul 2024 11:28:19 -0700 Subject: [PATCH] always provide content even if empty (#5778) --- api/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/types.go b/api/types.go index c7e9dce3..65a99c76 100644 --- a/api/types.go +++ b/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"` }