Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

always provide content even if empty (#5778)

Jeffrey Morgan84e5721f3a2f
diff --git a/api/types.go b/api/types.go
index c7e9dce3b..65a99c763 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"`
}