what would you do?

my boyfriend of 7 months just found out his one night stand from before we got together is 8 months pregnant. apparently there are two other guys that could possibly be the father. if it’s his he wants to raise the baby but he wants no kind of romantic relationship with the girl. i want to stay and be there for him but all my friends are saying i’m stupid and that i should leave. what would you do?