fix(ai-proxy): fix claude system content null serialization (#3496)

This commit is contained in:
澄潭
2026-02-13 20:32:37 +08:00
committed by GitHub
parent f9c7527753
commit 13ed2284ae

View File

@@ -74,7 +74,7 @@ type claudeChatMessageContent struct {
Input map[string]interface{} `json:"input,omitempty"` // For tool_use
// Tool result fields
ToolUseId string `json:"tool_use_id,omitempty"` // For tool_result
Content claudeChatMessageContentWr `json:"content,omitempty"` // For tool_result - can be string or array
Content *claudeChatMessageContentWr `json:"content,omitempty"` // For tool_result - can be string or array
}
// UnmarshalJSON implements custom JSON unmarshaling for claudeChatMessageContentWr