Enter to sendยทShift+Enter new line
Common utility functions for LLM APIs.
Cut off the text as soon as any stop words occur.