Most of what we know of it appeared in non-Homeric stories and most famously (nowadays) in Virgil.
Its just poetic fiction in what is a long form poem.
With that said, it always in turn felt like the serpents' presence undermined Odysseus' claim of being clever, since from that perspective the Trojans didn't have much choice but to bring it in, or risk the ire of the gods. It's hardly a ruse if the enemy knows it's a trap but is compelled by supernatural forces to take it anyway.