Browse Source

always provide content even if empty (#5778)

jmorganca/template-mistral
Jeffrey Morgan 2 years ago
committed by GitHub
parent
commit
84e5721f3a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      api/types.go

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

Loading…
Cancel
Save