It is imperative to temper the chocolate before adding it into the bowl of cake batter. This is done by briskly mixing a little of the batter into the chocolate before adding it to the rest of the cake batter. There is still a risk that the chocolate could seize, but it's a much lower risk. Read more of my tips on how to prevent the chocolate from seizing here.