langchain.llms.utils.enforce_stop_tokens

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

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