Artificial intelligence companies looking to raise funds are being made to pay lofty interest rates, as debt investors become cautious.