mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 20:57:32 +08:00
fix(ai-proxy): fix claude system content null serialization (#3496)
This commit is contained in:
@@ -74,7 +74,7 @@ type claudeChatMessageContent struct {
|
|||||||
Input map[string]interface{} `json:"input,omitempty"` // For tool_use
|
Input map[string]interface{} `json:"input,omitempty"` // For tool_use
|
||||||
// Tool result fields
|
// Tool result fields
|
||||||
ToolUseId string `json:"tool_use_id,omitempty"` // For tool_result
|
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
|
// UnmarshalJSON implements custom JSON unmarshaling for claudeChatMessageContentWr
|
||||||
|
|||||||
Reference in New Issue
Block a user