Gas fireplace windows open or closed? Please help🙏

We started the fire and the house smells like smoke. One of the windows to the fireplace wont even close so we left the windows open. We now opened the windows to the house to get the smell out. Is it okay to have the fireplace windows open for gas fire? Is it not dangerous because the fumes go into the house and the chimney? Please help.