There are a lot of different onion jam recipes. Nearly all call for caramelizing the onions, so always some sweetness. But some add extra sugar or honey, some add wine vinegar, some add red wine, some add sugar, vinegar and red wine. So more about what flavor profile you like. Some folks then use as almost a chutney with steaks.