[Refactor] Rename WAITING_FOR_FSM to WAITING_FOR_STRUCTURED_OUTPUT_GRAMMAR (#38048)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
+2
-2
@@ -102,7 +102,7 @@ class Request:
|
||||
assert sampling_params.max_tokens is not None
|
||||
self.max_tokens = sampling_params.max_tokens
|
||||
if self.structured_output_request is not None:
|
||||
self.status = RequestStatus.WAITING_FOR_FSM
|
||||
self.status = RequestStatus.WAITING_FOR_STRUCTURED_OUTPUT_GRAMMAR
|
||||
|
||||
if sampling_params.extra_args is not None:
|
||||
self.kv_transfer_params = sampling_params.extra_args.get(
|
||||
@@ -296,7 +296,7 @@ class RequestStatus(enum.IntEnum):
|
||||
"""Status of a request."""
|
||||
|
||||
WAITING = enum.auto()
|
||||
WAITING_FOR_FSM = enum.auto()
|
||||
WAITING_FOR_STRUCTURED_OUTPUT_GRAMMAR = enum.auto()
|
||||
WAITING_FOR_REMOTE_KVS = enum.auto()
|
||||
WAITING_FOR_STREAMING_REQ = enum.auto()
|
||||
RUNNING = enum.auto()
|
||||
|
||||
Reference in New Issue
Block a user