Thanks for the query.
To cure of the infection you have to complete the prescribed medicines. If you stop taking in the middle the infection may not be cured completely and also there is possibility of development of resistance.
And also you should not have unprotected intercourse
until you are completely cured of infection. And one more thing both partners should be treated simultaneously to avoid future transmission.
So you consult your doctor and undergo culture and sensitivity of the vaginal discharge
and take treatment accordingly.