    def eop_token_id(self) -> Optional[int]:
        """
        `Optional[int]`: Id of the end of sentence token in the vocabulary. Returns `None` if the token has not been
        set.
        """
        if self.eop_token is None:
            return None
        return self.convert_tokens_to_ids(self.eop_token)
`Optional[int]`: Id of the end of sentence token in the vocabulary. Returns `None` if the token has not been
set.
tokenization_chatglm.py