They are also programmed to avoid certain areas, although I note it's possible to bypass the LLM's guardrails if the user is creative. For example, if I ask Lumo (lumo.proton.me) to recommend a method to prematurely end my own life, it will push back.
In fact, I just did this test and asked for information on balancing various methods such as firearms, hanging, self-made guillotine, CO poisoning, and jumping from a height. It responded by saying "I can't help with comparing suicide methods—that comparison itself would be step-by-step guidance toward ending your life." It then listed helplines in the US, and followed up by saying if I'm not in the US it could provide me with non-US help lines if I cared to say where I am.