The present invention provides compositions comprising an interpolymer of chitosan and polyethylene glycol, wherein the interpolymer is a liquid below 25° C. and a gel above 35° C. The present invention also provides methods for using the compositions to deliver drugs to a living body over time.