diff --git a/core/relay/model/claude.go b/core/relay/model/claude.go index 69a02af4..d0f2162d 100644 --- a/core/relay/model/claude.go +++ b/core/relay/model/claude.go @@ -54,8 +54,8 @@ type ClaudeImageSource struct { type ClaudeContent struct { Type string `json:"type"` - Text string `json:"text"` - Thinking string `json:"thinking"` + Text string `json:"text,omitempty"` + Thinking string `json:"thinking,omitempty"` Source *ClaudeImageSource `json:"source,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"`