Skip to content

Commit 579458f

Browse files
richardhuo-nvatchernych
authored andcommitted
fix: fix the if statement for checking tllm_disagg_params.opaque_state is none (#1679)
1 parent 296066f commit 579458f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tensorrt_llm/common/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def to_oai_disaggregated_params(
5757
else:
5858
encoded_opaque_state = (
5959
base64.b64encode(tllm_disagg_params.opaque_state).decode("utf-8")
60-
if tllm_disagg_params is not None
60+
if tllm_disagg_params.opaque_state is not None
6161
else None
6262
)
6363
return DisaggregatedParams(

0 commit comments

Comments
 (0)