DMF for heat-resistant polymers