Skip to content

Commit

Permalink
miss messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Sep 24, 2024
1 parent e66731a commit 81530ee
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lmdeploy/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,31 @@ def __lt__(self, other):
return self.value < other.value
return NotImplemented

def __le__(self, other):
if self.__class__ is other.__class__:
return self.value <= other.value
return NotImplemented

def __eq__(self, other):
if self.__class__ is other.__class__:
return self.value == other.value
return NotImplemented

def __ne__(self, other):
if self.__class__ is other.__class__:
return self.value != other.value
return NotImplemented

def __gt__(self, other):
if self.__class__ is other.__class__:
return self.value > other.value
return NotImplemented

def __ge__(self, other):
if self.__class__ is other.__class__:
return self.value >= other.value
return NotImplemented


@dataclass
class Response:
Expand Down

0 comments on commit 81530ee

Please sign in to comment.