The present invention provides a composition suitable for forming an intramuscular implant. It comprises a biodegradable thermoplastic polymer of polylactic acid (PLA), DMSO and an aromatase inhibitor compound. The invention also provides a kit suitable for the in situ formation of the composition and its use as a medicine for treating cancer, especially breast cancer.