Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Sep 24, 2024
1 parent 579ec09 commit 468446a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lmdeploy/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ class ResponseType(enum.Enum):
INPUT_LENGTH_ERROR = enum.auto()
INTERNAL_ENGINE_ERROR = enum.auto()

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


@dataclass
class Response:
Expand Down

0 comments on commit 468446a

Please sign in to comment.