DMF for lithium batteries