From 1a25f015c3229b0731f9c7e1da78b43c714277ae Mon Sep 17 00:00:00 2001 From: zijiren <84728412+zijiren233@users.noreply.github.com> Date: Mon, 29 Jun 2026 18:12:22 +0800 Subject: [PATCH] Revert "fix: anthropic streaming content_block_start struct bug (#604)" This reverts commit 449859f6d013ad63f463b8e75eb9d4386246ef47. --- core/relay/model/claude.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"`