Hi aztrpt, welcome to the D&D Beyond forum!
In this instance, green-flame blade is functioning correctly. The half-elf variant that grants it gives you High Elf's Cantrip trait - and this always uses Intelligence.
You know one cantrip of your choice from the wizard spell list. Intelligence is your spellcasting ability for it.