diff --git a/core/providers/bedrock/utils.go b/core/providers/bedrock/utils.go index 998b888fb0f..c9351311fc6 100644 --- a/core/providers/bedrock/utils.go +++ b/core/providers/bedrock/utils.go @@ -1837,8 +1837,8 @@ func convertToolCallToContentBlock(toolCall schemas.ChatAssistantMessageToolCall if err := json.Compact(&buf, []byte(args)); err == nil { input = buf.Bytes() } else { - // Preserve original payload instead of silently dropping args. - input = json.RawMessage([]byte(args)) + // invalid json recieved + input = json.RawMessage("{}") } }