I've found that when other civilizations ask you for a free tech, I can say yes. Then right away ask them if they can spare all their cash (assuming that I have currency), and they usually say yes. This way you don't have to get the negative modifier and you won't feel like you missed out on a trading opportunity.