langchain_community.llms.utils.enforce_stop_tokens¶

langchain_community.llms.utils.enforce_stop_tokens(text: str, stop: List[str]) str[source]¶

Cut off the text as soon as any stop words occur.