In African tech hubs, developers are picking China’s cheap, freely available artificial intelligence models over more powerful U.S. ones.