Skip to content

Commit 956a435

Browse files
Fix formatting
Signed-off-by: Zhongxuan Wang <[email protected]>
1 parent b023688 commit 956a435

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

components/src/dynamo/vllm/handlers.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ async def generate_tokens(
259259
out = {"token_ids": output.token_ids[num_output_tokens_so_far:]}
260260
if output.finish_reason:
261261
out["finish_reason"] = output.finish_reason
262-
out["completion_usage"] = (
263-
BaseWorkerHandler._build_completion_usage(
264-
request_output=res,
265-
)
262+
out[
263+
"completion_usage"
264+
] = BaseWorkerHandler._build_completion_usage(
265+
request_output=res,
266266
)
267267
if output.stop_reason:
268268
out["stop_reason"] = output.stop_reason
@@ -511,9 +511,9 @@ async def generate(self, request, context):
511511
disaggregated_params: Optional[Dict[str, Any]] = {}
512512

513513
if res.kv_transfer_params:
514-
disaggregated_params["kv_transfer_params"] = (
515-
res.kv_transfer_params
516-
)
514+
disaggregated_params[
515+
"kv_transfer_params"
516+
] = res.kv_transfer_params
517517

518518
if include_timing and timing_metrics:
519519
timing_metrics["prefill_end_seconds"] = time.time()

components/src/dynamo/vllm/tests/test_vllm_extra_fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
_request_contains_timing_metrics,
2323
)
2424

25-
2625
pytestmark = [
2726
pytest.mark.unit,
2827
pytest.mark.vllm,

0 commit comments

Comments
 (0)